Function at 0x10009ad0
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1000eafa
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1001509c]
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 [0x10010284]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x10009c4d
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10009b30
sub eax, edx
sar eax, 1
je 0x10009c4d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x14]
test eax, eax
je 0x10009c50
push esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
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 [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push edi
push edi
push edi
push edi
push 1
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.1000cf7a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], edi
call fcn.1000cf86
lea ecx, [ebp - 0x20]
call dword [0x10010284]
lea ecx, [ebp - 0x1c]
call dword [0x10010284]
lea ecx, [ebp - 0x18]
call dword [0x10010284]
lea ecx, [ebp - 0x28]
call dword [0x10010284]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x40], 1
call dword [0x10010284]
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 0x10009c80
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Unable_to_open_the_file.
call dword [0x10010254]
mov eax, ebx
call fcn.10009a50
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 sub.mfc90u.dll_CFile::CFile
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_CInternetSession::CInternetSession
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.1000d2b5
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]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.10009850
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call dword [0x10010280]
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 - 0x30]
push edx
lea edi, [ebp - 0x20]
call fcn.10009940
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call dword [0x10010280]
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 - 0x18]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ecx - 0xc]
mov edi, dword [eax - 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 0x10009bff
mov ebx, dword [ebp - 0x58]
mov byte [ebp - 4], 0xb
movzx edx, word [ebx + 8]
mov eax, dword [ebx]
push 0
push 0
push edx
push eax
lea ecx, [ebp - 0x6c]
call sub.mfc90u.dll_CInternetSession::GetHttpConnection
mov ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x10009d69
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.HttpConnection_faild.
call dword [0x10010254]
mov eax, ebx
call fcn.10009a50
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::Close
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x10009bff
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 0x10009dd3
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.OpenRequest_POST_faild.
call dword [0x10010254]
mov eax, ebx
call fcn.10009a50
lea ecx, [ebp - 0x54]
call sub.mfc90u.dll_CFile::Close
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [ebp - 0x44]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
add esp, 4
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
jmp 0x10009bff
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.100096b0
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 0x10009e1c
xor eax, eax
jmp 0x10009e52
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10009e2f
xor eax, eax
jmp 0x10009e4f
lea esi, [eax + eax]
mov eax, esi
call fcn.1000dee0
mov ebx, esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x30]
mov ecx, esi
mov edx, 3
mov esi, ebx
call fcn.1000a5b0
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 0x10009eb9
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 0x10009eb9
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
push esi
push ecx
mov ecx, edi
call edx
jmp 0x10009e63
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x10009ec7
xor eax, eax
jmp 0x10009efd
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10009eda
xor eax, eax
jmp 0x10009efa
lea esi, [eax + eax]
mov eax, esi
call fcn.1000dee0
mov ebx, esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x30]
mov ecx, esi
mov edx, 3
mov esi, ebx
call fcn.1000a5b0
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 0x10009f6a
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 [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
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 0x10009f24
mov dword [ebp - 4], 8
jmp 0x10009fc0
test edi, edi
je 0x10009fd8
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 0x10009ff3
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 0x1000a00c
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 sub.mfc90u.dll_CFile::CFile
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_CInternetSession::CInternetSession
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 0x10009c58