Function at 0x463755
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [0x5c4e68]
xor eax, esp
mov dword [esp + 0x2a8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
xor ebx, ebx
push 0x13c
mov dword [esp + 0x20], eax
lea eax, [esp + 0x50]
push ebx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], ebx
call fcn.005117f0
add esp, 0xc
mov byte [esp + 0x188], bl
push 7
xor eax, eax
pop ecx
lea edi, [esp + 0x189]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004f16be
cmp dword [ebp + 8], ebx
mov dword [esp + 0x10], eax
je 0x4637d4
mov esi, 0x6c2ab0
call fcn.0046404d
xor eax, eax
jmp 0x463f4b
cmp dword [0x6c2ab4], ebx
jne 0x463f37
push 0xc
push ebx
push 0x6c2ab0
call fcn.005117f0
add esp, 0xc
call fcn.00466228
test eax, eax
je 0x4637cd
call fcn.00463089
mov dword [esp + 0x24], eax
call fcn.0048a53c
cmp dword [ebp + 0xc], ebx
je 0x463817
push str._nPhase_1...
call fcn.00470dd2
pop ecx
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x20], ebx
push ebx
push ebx
push ebx
push 1
push 0x530c74
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [0x6c2ab0], eax
jne 0x4638b6
push str._GetLastError_
push str.:0:GetFtpHandleToPAULA__:_InternetOpen___FAILED..._Trying_again:__s
call fcn.00426c01
cmp edi, ebx
pop ecx
pop ecx
jbe 0x463859
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x4638a6
cmp esi, ebx
je 0x463861
cmp dword [esi], ebx
jne 0x4638a6
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0xc], ebx
je 0x46387c
push 0x5320c4
call fcn.00470dd2
pop ecx
cmp edi, ebx
jbe 0x46388d
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x4638a6
cmp esi, ebx
je 0x463895
cmp dword [esi], ebx
jne 0x4638a6
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 3
jl 0x46381e
jmp 0x4638b6
cmp dword [ebp + 0xc], ebx
je 0x4638b6
push str._nTIME_OUT__n
call fcn.00470dd2
pop ecx
cmp edi, ebx
jbe 0x4638c7
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x4638cf
cmp esi, ebx
je 0x4638e8
cmp dword [esi], ebx
je 0x4638e8
cmp dword [ebp + 0xc], ebx
je 0x4637c3
push str._nTIME_OUT__n
call fcn.00470dd2
pop ecx
jmp 0x4637c3
cmp dword [0x6c2ab0], ebx
je 0x463b92
cmp dword [ebp + 0xc], ebx
je 0x463910
push 0x5304c4
call fcn.00470dd2
mov dword [esp], str._nPhase_2...IC1..
call fcn.00470dd2
pop ecx
mov edi, dword [sym.imp.WININET.dll_InternetConnectA]
push ebx
push dword [esp + 0x28]
mov esi, 0x5c7630
push 1
push str.PAULAWAULA
push esi
push 0x15
lea eax, [esp + 0x1a0]
push eax
push dword [0x6c2ab0]
call edi
cmp dword [ebp + 0x14], ebx
mov dword [0x6c2ab4], eax
jbe 0x463956
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x4638cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x463966
cmp dword [eax], ebx
jne 0x4638cf
mov eax, dword [0x6c2ab4]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x4639a8
push ebx
push ebx
lea ecx, [esp + 0x50]
push ecx
push str._PAULA_LiveUpdate_DownLoad_
push eax
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4639a8
call fcn.0048a53c
test eax, eax
je 0x4639a8
push str._GetLastError_
push str.:1:FtpFindFirstFile___FAILED:__s
call fcn.004265da
pop ecx
pop ecx
cmp dword [ebp + 0x14], ebx
jbe 0x4639bf
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x4638cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4639cf
cmp dword [eax], ebx
jne 0x4638cf
cmp dword [esp + 0x14], ebx
jne 0x463bd3
cmp dword [esp + 0x24], 0x8000000
mov eax, dword [0x6c2ab4]
je 0x463ac8
cmp eax, ebx
je 0x463a1a
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x463a0c
push str._GetLastError_
push str.:4:GetFtpHandleToPAULA___encountered_a_problem:_InternetCloseHandle___FAILED_1:__s
call fcn.004265da
pop ecx
pop ecx
push 0x19
mov dword [0x6c2ab4], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x8000000
push 1
push str.PAULAWAULA
push esi
push 0x15
lea eax, [esp + 0x1a0]
push eax
push dword [0x6c2ab0]
call edi
cmp eax, ebx
mov dword [0x6c2ab4], eax
mov dword [esp + 0x14], ebx
je 0x463a7c
push ebx
push ebx
lea ecx, [esp + 0x50]
push ecx
push str._PAULA_LiveUpdate_DownLoad_
push eax
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x463a7c
call fcn.0048a53c
test eax, eax
je 0x463a7c
push str._GetLastError_
push str.:2:FtpFindFirstFile___FAILED:__s
call fcn.004265da
pop ecx
pop ecx
cmp dword [ebp + 0x14], ebx
jbe 0x463a93
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x4638cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x463aa3
cmp dword [eax], ebx
jne 0x4638cf
cmp dword [esp + 0x14], ebx
je 0x463ba8
push str.:0:FYI:GetFtpHandleToPAULA___had_to_use_PASSIVE_FTP_MODE_to_establish_a_connection_to_the_PAULA_FTP_server.
call fcn.00426c01
mov dword [esp], 0x8000000
call fcn.00463234
jmp 0x463ba1
cmp eax, ebx
je 0x463af6
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x463ae8
push str._GetLastError_
push str.:4:GetFtpHandleToPAULA___encountered_a_problem:_InternetCloseHandle___FAILED_2:__s
call fcn.004265da
pop ecx
pop ecx
push 0x19
mov dword [0x6c2ab4], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push 1
push str.PAULAWAULA
push esi
push 0x15
lea eax, [esp + 0x1a0]
push eax
push dword [0x6c2ab0]
call edi
cmp eax, ebx
mov dword [0x6c2ab4], eax
mov dword [esp + 0x14], ebx
je 0x463b54
push ebx
push ebx
lea ecx, [esp + 0x50]
push ecx
push str._PAULA_LiveUpdate_DownLoad_
push eax
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x463b54
call fcn.0048a53c
test eax, eax
je 0x463b54
push str._GetLastError_
push str.:3:FtpFindFirstFile___FAILED:__s
call fcn.004265da
pop ecx
pop ecx
cmp dword [ebp + 0x14], ebx
jbe 0x463b6b
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x4638cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x463b7b
cmp dword [eax], ebx
jne 0x4638cf
cmp dword [esp + 0x14], ebx
je 0x463ba8
push str.:0:FYI:GetFtpHandleToPAULA___had_to_use_ACTIVE_FTP_MODE_to_establish_a_connection_to_the_PAULA_FTP_server.
call fcn.00426c01
pop ecx
push ebx
jmp 0x463abe
cmp dword [ebp + 0xc], ebx
je 0x463ba8
push str.FAILED_
call fcn.00470dd2
cmp dword [esp + 0x18], ebx
pop ecx
jne 0x463bd3
mov eax, dword [0x6c2ab4]
cmp eax, ebx
je 0x463be0
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x463bcd
push str._GetLastError_
push str.:4:GetFtpHandleToPAULA___encountered_a_problem:_InternetCloseHandle___FAILED_3:__s
call fcn.004265da
pop ecx
pop ecx
mov dword [0x6c2ab4], ebx
mov eax, dword [0x6c2ab4]
cmp eax, ebx
jne 0x463e3f
cmp dword [0x6c2ac0], ebx
jne 0x463c6f
cmp dword [0x6c2abc], ebx
jne 0x463c6f
cmp dword [ebp + 0xc], ebx
je 0x463c04
push str._nAttempting_backup_server...
call fcn.00470dd2
pop ecx
cmp dword [ebp + 0x14], ebx
jbe 0x463c1b
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x4638cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x463c2b
cmp dword [eax], ebx
jne 0x4638cf
mov esi, 0x6c2ab0
mov dword [0x6c2ac0], 1
call fcn.0046404d
push dword [esp + 0x18]
call fcn.004f16be
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
add ecx, edx
sub ecx, eax
push ecx
push dword [esp + 0x24]
push dword [ebp + 0xc]
push ebx
call fcn.00463755
add esp, 0x14
mov dword [0x6c2ac0], ebx
jmp 0x463f4b
cmp eax, ebx
jne 0x463e3f
cmp dword [ebp + 0xc], ebx
je 0x463c87
push str..FAILED.._n____...Attempting_IC_SAT..
call fcn.00470dd2
pop ecx
mov eax, dword [0x6c2ab0]
cmp eax, ebx
je 0x463cb2
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x463cac
push str._GetLastError_
push str.:4:GetFtpHandleToPAULA___encountered_a_problem:_InternetCloseHandle___FAILED_4:__s
call fcn.004265da
pop ecx
pop ecx
mov dword [0x6c2ab0], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x463cc9
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x4638cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x463cd9
cmp dword [eax], ebx
jne 0x4638cf
cmp dword [0x6c2abc], ebx
jne 0x4637cd
push 0x103
lea eax, [esp + 0x1ad]
push ebx
push eax
mov byte [esp + 0x1b4], bl
call fcn.005117f0
xor eax, eax
mov word [esp + 0x44], bx
lea edi, [esp + 0x46]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x34], bx
xor eax, eax
lea edi, [esp + 0x36]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push str.StoreId.dat
lea edi, [esp + 0x1ac]
call fcn.004683e7
mov dword [esp], 0x872
lea eax, [esp + 0x2c]
push str..Network.c
push eax
call fcn.004f2709
add esp, 0xc
test eax, eax
je 0x4637cd
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.0046e3b7
test eax, eax
pop ecx
je 0x4637cd
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x48]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0d62
push eax
call fcn.0051209e
add esp, 0x24
cmp eax, 0x6ddd00
jle 0x4637cd
cmp dword [ebp + 0xc], ebx
je 0x463dac
push str._nAttempting_to_establish_INet_connection...
call fcn.00470dd2
pop ecx
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 0x14]
lea esi, [eax + edi]
call fcn.004f16be
mov ecx, esi
sub ecx, eax
push ecx
push dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
push 0x1b7740
call fcn.00464851
add esp, 0xc
test eax, eax
je 0x4637cd
cmp dword [ebp + 0xc], ebx
je 0x463dec
push str._nTrying_FTP_connection_process_again...
call fcn.00470dd2
pop ecx
cmp edi, ebx
jbe 0x463e01
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x4638cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x463e11
cmp dword [eax], ebx
jne 0x4638cf
push eax
mov dword [0x6c2abc], 1
call fcn.004f16be
sub esi, eax
push esi
push dword [esp + 0x24]
push dword [ebp + 0xc]
push ebx
call fcn.00463755
add esp, 0x14
mov dword [0x6c2abc], ebx
jmp 0x463f4b
cmp dword [ebp + 0xc], ebx
je 0x463e5b
push str..OK.
call fcn.00470dd2
mov dword [esp], str._nEnumerating_FTP_server_root_directory...
call fcn.00470dd2
pop ecx
push 0x893
mov ecx, str..Network.c
call fcn.004c7204
cmp eax, ebx
pop ecx
mov dword [0x6c2ab8], eax
jne 0x463e83
push str.:7:GetFtpHandleToPAULA___FAILED:_CreateStringList___FAILED_to_create_a_string_list_to_hold_the_FTP_root_directory_
call fcn.004265da
jmp 0x4638e2
xor edi, edi
mov esi, str._AltHT
lea edx, [esp + 0x74]
call fcn.004c3b34
test eax, eax
jne 0x463f16
test byte [esp + 0x48], 0x10
jne 0x463f16
cmp byte [esp + 0x74], 0x2e
je 0x463f16
test byte [esp + 0x48], 6
jne 0x463f16
lea eax, [esp + 0x74]
push eax
call fcn.004c3c75
test eax, eax
pop ecx
jne 0x463edd
lea ecx, [esp + 0x74]
call fcn.004634d9
inc edi
cmp edi, 1
jle 0x463f16
lea eax, [esp + 0x74]
push eax
push esi
push str.:7:GetFtpHandleToPAULA___found_MULTIPLE__ss_____:__s
call fcn.00426c01
add esp, 0xc
push ebx
lea eax, [esp + 0x78]
push eax
push dword [0x6c2ab8]
call fcn.004c75fc
add esp, 0xc
test eax, eax
jne 0x463f16
inc dword [0x6c2ac4]
cmp dword [0x6c2ac4], 4
jg 0x463f16
push dword [0x6c2ac4]
push str.:8:__d_of_4:_GetFtpHandleToPAULA___has_encountered_a_serious_exception:_AddString___FAILED:_The_list_of_FTP_Update_File_Names_could_not_be_generated_
call fcn.004265da
pop ecx
pop ecx
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x18]
call dword [sym.imp.WININET.dll_InternetFindNextFileA]
test eax, eax
jne 0x463e8a
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x1c]
mov esi, 0x6c2ab0
call fcn.00463f60
mov eax, dword [0x6c2ab4]
pop ecx
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051291c
mov esp, ebp
pop ebp
ret