Function at 0x403930
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 0x40787e
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 0x4039f0
mov edx, dword [ebx]
push 0x408c0c
push 0xd
mov byte [ebx + 0x45c], al
call dword [edx + 8]
xor al, al
jmp 0x4040a4
mov eax, dword [ebx]
push 0x408bf4
push 0xd
call dword [eax + 8]
cmp dword [ebx + 0xec], 0x10
jb 0x403a0d
mov ecx, dword [ebx + 0xd8]
jmp 0x403a13
lea ecx, [ebx + 0xd8]
push 0
push 0
xor eax, eax
mov ax, word [ebx + 0xf0]
push 3
push 0x408a32
push 0x408a32
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 0x403a65
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx]
push 0x408bdc
push 0xd
mov ecx, ebx
mov byte [ebx + 0x45c], 0
call dword [eax + 8]
xor al, al
jmp 0x4040a4
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 0x403a9f
mov eax, dword [eax + 4]
jmp 0x403aa2
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 0x403ade
mov eax, dword [esi + 4]
jmp 0x403ae1
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._2278updata_
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 0x403b4b
mov eax, dword [eax + 4]
jmp 0x403b4e
add eax, 4
lea edx, [esp + 0x4e0]
push edx
mov ecx, eax
mov esi, ebx
call fcn.00402130
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 0x403bca
mov eax, dword [ebx]
push 0x408b5c
push 0xd
mov ecx, ebx
call dword [eax + 8]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
jmp 0x4040a4
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.004043c0
lea edx, [esp + 0x18]
push edx
mov eax, esi
push eax
call fcn.004040d0
lea ecx, [esp + 0x18]
push ecx
mov edx, esi
push edx
call fcn.00404530
mov ecx, dword [0x419420]
cmp ecx, edi
je 0x403c3a
mov eax, dword [0x419424]
sub eax, ecx
sar eax, 4
cmp eax, edi
ja 0x403c63
mov eax, dword [ebx]
push 0x408b50
push 0xd
mov ecx, ebx
call dword [eax + 8]
push 0xd
mov edx, 0xc8
mov eax, 0x190
mov ecx, 0x84
call fcn.00403700
jmp 0x404090
mov edx, dword [ebx]
push 0x408b3c
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 0x403cd0
xor eax, eax
jmp 0x403cda
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 0x404040
lea esp, [esp]
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
push eax
lea eax, [esp + 0xc4]
push 0x408b38
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 0x404030
lea ecx, [esp + 0xc0]
push str.winmm.dll
push ecx
call dword [sym.imp.MSVCR71.dll__strcmpi]
add esp, 8
test eax, eax
je 0x404030
cmp dword [edi + 0xc], 1
mov ecx, edi
push 0x408b28
jne 0x403dd1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403da6
push 0x408a60
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403da6
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.00402960
jmp 0x403ff3
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x3dc]
push 0x408b38
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x3d8]
call fcn.00402960
jmp 0x403ff3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403e7e
push 0x408a60
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x403e7e
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._2278updata_
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 0x403e51
mov eax, dword [eax + 4]
jmp 0x403e54
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 0x403f06
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x1cc]
push 0x408b38
push edx
call esi
lea eax, [ebx + 0x9c]
push eax
lea eax, [esp + 0xb4]
push str._2278updata_
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 0x403ed9
mov eax, dword [eax + 4]
jmp 0x403edc
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.00402130
test al, al
jne 0x403f5a
lea edx, [esp + 0x6e8]
push 0x408ad4
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 0x404030
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 0x408b38
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 0x403fc0
or ecx, 0xffffffff
lea eax, [esp + 0x1c8]
call fcn.004038b0
cmp dword [edi + 8], eax
je 0x403fc0
lea edx, [esp + 0x1c8]
push edx
lea ecx, [esp + 0x2d4]
mov esi, ebx
call fcn.00402130
lea eax, [esp + 0xc0]
push eax
push str.autoupdate.exe
call dword [sym.imp.MSVCR71.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x403fe1
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 0x40402a
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.00403700
inc dword [ebx + 0x98]
mov eax, dword [0x419424]
add edi, 0x10
cmp edi, eax
jne 0x403d00
mov edx, dword [ebx]
push 0x408b50
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.00404950
lea ebx, [esp + 0x34]
call fcn.00404950
mov al, 1
mov ecx, dword [esp + 0x8fc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8f4]
call fcn.00406fae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret