Function at 0x403920
Capabilities:
Check if file exists
Connect to http server
Create directory
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40785e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8f0
mov eax, dword [0x40c060]
push ebx
mov dword [esp + 0x8ec], eax
mov eax, dword [str.___n]
mov ebx, ecx
mov ecx, dword [0x40c0ac]
push esi
mov dword [esp + 0x14], eax
push edi
add eax, 0x1f4
mov dword [esp + 0x1c], ecx
add ecx, 0xa
mov dword [esp + 0x20], eax
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x40e1a8]
push eax
push ecx
mov dword [ebx + 0x90], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esp + 0x6e8], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x6e9]
rep stosd dword es:[edi], eax
push 0
push 0
push 0
stosw word es:[edi], ax
push 1
push 0
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [ebx + 4], eax
mov ecx, ebx
jne 0x4039e0
mov edx, dword [ebx]
push 0x408bf8
push 0xd
mov byte [ebx + 0x45c], al
call dword [edx + 8]
xor al, al
jmp 0x404085
mov eax, dword [ebx]
push 0x408be0
push 0xd
call dword [eax + 8]
cmp dword [ebx + 0xec], 0x10
jb 0x4039fd
mov ecx, dword [ebx + 0xd8]
jmp 0x403a03
lea ecx, [ebx + 0xd8]
push 0
push 0
xor eax, eax
mov ax, word [ebx + 0xf0]
push 3
push 0x408a2a
push 0x408a2a
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [ebx + 8], eax
jne 0x403a55
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx]
push 0x408bc8
push 0xd
mov ecx, ebx
mov byte [ebx + 0x45c], 0
call dword [eax + 8]
xor al, al
jmp 0x404085
mov edi, dword [sym.imp.MSVCR71.dll__mkdir]
push str.updatetmp
mov byte [ebx + 0x45c], 1
call edi
lea esi, [ebx + 0x9c]
push esi
lea ecx, [esp + 0x20]
push str.updatetmp_
push ecx
call fcn.004010a0
mov ecx, dword [eax + 0x18]
add esp, 0x10
cmp ecx, 0x10
jb 0x403a8f
mov eax, dword [eax + 4]
jmp 0x403a92
add eax, 4
push eax
call edi
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov byte [esp + 0x4e0], 0
mov ecx, 0x81
lea edi, [esp + 0x4e1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x18]
mov edi, 0x10
cmp eax, edi
jb 0x403ace
mov eax, dword [esi + 4]
jmp 0x403ad1
lea eax, [esi + 4]
push eax
lea edx, [esp + 0x4e4]
push str.updatetmp__s_filelist.list
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push str._56yupdate_
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x910], 0
call fcn.00401020
push str._filelist.list
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x91c], 1
call fcn.00401120
add esp, 0x18
mov byte [esp + 0x904], 2
cmp dword [eax + 0x18], edi
jb 0x403b3b
mov eax, dword [eax + 4]
jmp 0x403b3e
add eax, 4
lea edx, [esp + 0x4e0]
push edx
mov ecx, eax
mov esi, ebx
call fcn.00402120
neg al
sbb al, al
inc al
lea ecx, [esp + 0x18]
mov byte [esp + 0x13], al
mov byte [esp + 0x904], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x904], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x904], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x13]
test al, al
je 0x403baf
mov eax, dword [ebx]
push 0x408b54
push 0xd
mov ecx, ebx
call dword [eax + 8]
xor al, al
jmp 0x404085
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x904], 3
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x4e0]
push ecx
lea esi, [esp + 0x38]
mov byte [esp + 0x908], 4
call fcn.004043a0
lea edx, [esp + 0x18]
push edx
mov eax, esi
push eax
call fcn.004040b0
lea ecx, [esp + 0x18]
push ecx
mov edx, esi
push edx
call fcn.00404510
mov ecx, dword [0x419420]
cmp ecx, edi
je 0x403c1f
mov eax, dword [0x419424]
sub eax, ecx
sar eax, 4
cmp eax, edi
ja 0x403c48
mov eax, dword [ebx]
push 0x408b48
push 0xd
mov ecx, ebx
call dword [eax + 8]
push 0xd
mov edx, 0xc8
mov eax, 0x190
mov ecx, 0x84
call fcn.004036f0
jmp 0x404071
mov edx, dword [ebx]
push 0x408b34
push 0xd
mov ecx, ebx
call dword [edx + 8]
xor eax, eax
mov byte [esp + 0x2d0], 0
mov ecx, 0x40
lea edi, [esp + 0x2d1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x1c8], 0
mov ecx, 0x40
lea edi, [esp + 0x1c9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0xc0], 0
mov ecx, 0x40
lea edi, [esp + 0xc1]
rep stosd dword es:[edi], eax
mov ecx, dword [0x419420]
test ecx, ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x403cb5
xor eax, eax
jmp 0x403cbf
mov eax, dword [0x419424]
sub eax, ecx
sar eax, 4
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x98], 0
mov edi, dword [0x419420]
cmp edi, dword [0x419424]
je 0x404021
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
push eax
lea eax, [esp + 0xc4]
push 0x408b30
push eax
call esi
mov eax, dword [edi]
push str.updatetmp
push eax
call dword [sym.imp.MSVCR71.dll__strcmpi]
add esp, 0x14
test eax, eax
je 0x404011
lea ecx, [esp + 0xc0]
push str.winmm.dll
push ecx
call dword [sym.imp.MSVCR71.dll__strcmpi]
add esp, 8
test eax, eax
je 0x404011
cmp dword [edi + 0xc], 1
mov ecx, edi
push 0x408b20
jne 0x403db2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403d87
push 0x408a58
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403d87
mov eax, dword [edi]
lea edx, [esp + 0xc0]
push edx
push eax
lea ecx, [esp + 0x3e0]
push str._s_s
push ecx
call esi
add esp, 0x10
lea ecx, [esp + 0x3d8]
call fcn.00402950
jmp 0x403fd4
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x3dc]
push 0x408b30
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x3d8]
call fcn.00402950
jmp 0x403fd4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403e5f
push 0x408a58
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403e5f
mov eax, dword [edi]
lea ecx, [esp + 0xc0]
push ecx
push eax
lea edx, [esp + 0x1d0]
push str._s_s
push edx
call esi
lea eax, [ebx + 0x9c]
push eax
lea eax, [esp + 0x64]
push str._56yupdate_
push eax
call fcn.004010a0
push str._release__s__s
push eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x92c], 6
call fcn.00401120
mov edx, dword [eax + 0x18]
mov ecx, dword [edi]
add esp, 0x28
cmp edx, 0x10
jb 0x403e32
mov eax, dword [eax + 4]
jmp 0x403e35
add eax, 4
lea edx, [esp + 0xc0]
push edx
push ecx
push eax
lea eax, [esp + 0x2dc]
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x50]
jmp 0x403ee7
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x1cc]
push 0x408b30
push edx
call esi
lea eax, [ebx + 0x9c]
push eax
lea eax, [esp + 0xb4]
push str._56yupdate_
push eax
call fcn.004010a0
push str._release__s
push eax
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0x928], 5
call fcn.00401120
mov ecx, dword [eax + 0x18]
add esp, 0x24
cmp ecx, 0x10
jb 0x403eba
mov eax, dword [eax + 4]
jmp 0x403ebd
add eax, 4
lea edx, [esp + 0xc0]
push edx
push eax
lea eax, [esp + 0x2d8]
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x904], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esp + 0x2d4]
mov esi, ebx
call fcn.00402120
test al, al
jne 0x403f3b
lea edx, [esp + 0x6e8]
push 0x408acc
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
mov eax, dword [ebx]
add esp, 8
lea ecx, [esp + 0x6e8]
push ecx
push 0xd
mov ecx, ebx
call dword [eax + 8]
jmp 0x404011
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [esp + 0x1c8]
push edx
lea eax, [esp + 0x18]
push 0x408b30
push eax
mov byte [esp + 0x910], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403fa1
or ecx, 0xffffffff
lea eax, [esp + 0x1c8]
call fcn.004038a0
cmp dword [edi + 8], eax
je 0x403fa1
lea edx, [esp + 0x1c8]
push edx
lea ecx, [esp + 0x2d4]
mov esi, ebx
call fcn.00402120
lea eax, [esp + 0xc0]
push eax
push str.autoupdate.exe
call dword [sym.imp.MSVCR71.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x403fc2
mov byte [0x40ea59], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x904], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebx + 0x94]
test ecx, ecx
jle 0x40400b
mov eax, dword [ebx + 0x98]
inc eax
imul eax, eax, 0x2710
cdq
idiv ecx
mov ecx, dword [str.___n]
push 0xa
mov edx, 0x1f4
mov dword [ebx + 0x90], eax
mov eax, dword [0x40c0ac]
call fcn.004036f0
inc dword [ebx + 0x98]
mov eax, dword [0x419424]
add edi, 0x10
cmp edi, eax
jne 0x403ce1
mov edx, dword [ebx]
push 0x408b48
push 0xd
mov ecx, ebx
call dword [edx + 8]
mov eax, dword [0x40c0c4]
mov ecx, dword [0x40c0c8]
mov dword [esp + 0x50], eax
add eax, 0xc8
mov dword [esp + 0x54], ecx
add ecx, 0xd
mov dword [esp + 0x58], eax
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x40e1a8]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [esp + 0x18]
call fcn.00404930
lea ebx, [esp + 0x34]
call fcn.00404930
mov al, 1
mov ecx, dword [esp + 0x8fc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8f4]
call fcn.00406f8e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret