Function at 0x1000f0a0
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100edbba
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1011f07c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x58], ebx
mov esi, edx
call dword [0x100f3984]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1000f21d
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000f100
sub eax, edx
sar eax, 1
je 0x1000f21d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x14]
test eax, eax
je 0x1000f220
push esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0x5c
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call dword [0x100f3988]
push edi
push edi
push edi
push edi
push 1
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_CInternetSession::CInternetSession
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], edi
call sub.mfc90u.dll_CFile::CFile
lea ecx, [ebp - 0x20]
call dword [0x100f3984]
lea ecx, [ebp - 0x1c]
call dword [0x100f3984]
lea ecx, [ebp - 0x18]
call dword [0x100f3984]
lea ecx, [ebp - 0x28]
call dword [0x100f3984]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x40], 1
call dword [0x100f3984]
push edi
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
push 0x20
push ecx
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::Open
test eax, eax
jne 0x1000f250
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Unable_to_open_the_file.
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, ebx
call fcn.1000eff0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.100e6fb6
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.100e71e4
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
lea esp, [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.100e78b2
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
push str.___________________________7b4a6d158c9
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.1000ee40
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.1000ef30
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ecx - 0xc]
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx - 0xc]
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::GetLength
mov esi, eax
add esi, ebx
push 0x10000
add esi, edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x1000f1cf
mov ebx, dword [ebp - 0x58]
mov byte [ebp - 4], 0xb
movzx ecx, word [ebx + 8]
mov eax, dword [ebx]
push 0
push 0
push ecx
push eax
lea ecx, [ebp - 0x6c]
call sub.mfc90u.dll_CInternetSession::GetHttpConnection
mov ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x1000f33a
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.HttpConnection_faild.
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, ebx
call fcn.1000eff0
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::Close
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x1000f1cf
mov eax, dword [ebx + 4]
push 0x20000000
push 0
push 0
push 1
push 0
push eax
push 0
call sub.mfc90u.dll_CHttpConnection::OpenRequest
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x1000f3a4
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.OpenRequest_POST_faild.
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, ebx
call fcn.1000eff0
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::Close
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [ebp - 0x44]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
add esp, 4
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
jmp 0x1000f1cf
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.1000eca0
push 0xffffffffffffffff
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push 0x10000000
push eax
mov ecx, edi
call sub.mfc90u.dll_CHttpFile::AddRequestHeaders
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 1
push 0xc
push esi
mov ecx, edi
call sub.mfc90u.dll_CHttpFile::SendRequestEx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x1000f3ed
xor eax, eax
jmp 0x1000f420
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1000f400
xor eax, eax
jmp 0x1000f41d
lea esi, [eax + eax]
mov eax, esi
call fcn.100e9310
mov ebx, esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x30]
mov ecx, esi
xor edx, edx
mov esi, ebx
call fcn.1000fcc0
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx - 0xc]
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 0x40]
mov ecx, edi
call eax
or esi, 0xffffffff
test esi, esi
je 0x1000f487
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::GetLength
lea ecx, [ebp - 0x54]
mov esi, eax
mov ebx, edx
call sub.mfc90u.dll_CFile::GetPosition
push ebx
push esi
push edx
push eax
lea ecx, [ebp - 0x2c]
push str._u____u_n
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edx, dword [ebp - 0x3c]
add esp, 0x18
mov eax, 0x10000
push eax
push edx
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::Read
mov esi, eax
test esi, esi
je 0x1000f487
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
push esi
push ecx
mov ecx, edi
call edx
jmp 0x1000f431
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x1000f495
xor eax, eax
jmp 0x1000f4cb
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1000f4a8
xor eax, eax
jmp 0x1000f4c8
lea esi, [eax + eax]
mov eax, esi
call fcn.100e9310
mov ebx, esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x30]
mov ecx, esi
mov edx, 3
mov esi, ebx
call fcn.1000fcc0
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx - 0xc]
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 0x40]
mov ecx, edi
call eax
push 1
push 0
push 4
mov ecx, edi
call sub.mfc90u.dll_CHttpFile::EndRequest
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
mov dword [ebp - 0x30], edx
mov esi, eax
test esi, esi
je 0x1000f538
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
mov byte [ebx + esi], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
push esi
push ebx
mov ecx, edi
call eax
push ebx
lea ecx, [ebp - 0x28]
call dword [0x100f37b0]
push ebx
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
add esp, 4
mov ecx, edi
call eax
mov dword [ebp - 0x30], edx
jmp 0x1000f4f2
mov dword [ebp - 4], 8
jmp 0x1000f58e
test edi, edi
je 0x1000f5a6
mov edx, dword [edi]
mov eax, dword [edx + 0x54]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x1000f5c1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::Close
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1000f5da
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.100e6fb6
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.100e71e4
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp - 0x40]
jmp 0x1000f228