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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d0
push ebx
push esi
push edi
lea edi, [ebp - 0x3d0]
mov ecx, 0xf4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x818f7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x178], 0
push 0x13c
push 0
lea eax, [ebp - 0x174]
push eax
call fcn.00533469
add esp, 0xc
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x190], 0
mov byte [ebp - 0x1b8], 0
xor eax, eax
mov dword [ebp - 0x1b7], eax
mov dword [ebp - 0x1b3], eax
mov dword [ebp - 0x1af], eax
mov dword [ebp - 0x1ab], eax
mov dword [ebp - 0x1a7], eax
mov dword [ebp - 0x1a3], eax
mov dword [ebp - 0x19f], eax
mov word [ebp - 0x19b], ax
mov byte [ebp - 0x199], al
call fcn.00533cd9
mov dword [ebp - 0x184], eax
cmp dword [ebp + 8], 0
je 0x5f894d
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
cmp dword [0x935660], 0
je 0x5f8971
mov eax, dword [ebp + 0x10]
push eax
push 0x93565c
call fcn.005f9df0
add esp, 8
mov eax, dword [0x935660]
jmp 0x5f93c7
push 0xc
push 0
push 0x93565c
call fcn.00533469
add esp, 0xc
call fcn.00534b16
test eax, eax
jne 0x5f8992
xor eax, eax
jmp 0x5f93c7
call fcn.005f9780
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
je 0x5f89ad
push str._nPhase_1...
call fcn.006179e0
add esp, 4
mov dword [ebp - 0x24], 0
jmp 0x5f89bf
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jge 0x5f8a95
mov esi, esp
push 0
push 0
push 0
push 1
push 0x7a18e0
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp esi, esp
call fcn.00535fca
mov dword [0x93565c], eax
cmp dword [0x93565c], 0
jne 0x5f8a95
cmp dword [ebp + 0x14], 0
jbe 0x5f8a0d
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8a1b
cmp dword [ebp + 0x18], 0
je 0x5f8a30
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8a30
cmp dword [ebp + 0xc], 0
je 0x5f8a2e
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
jmp 0x5f8a95
mov esi, esp
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00535fca
cmp dword [ebp + 0xc], 0
je 0x5f8a57
push 0x79ddcc
call fcn.006179e0
add esp, 4
cmp dword [ebp + 0x14], 0
jbe 0x5f8a6d
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8a7b
cmp dword [ebp + 0x18], 0
je 0x5f8a90
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8a90
cmp dword [ebp + 0xc], 0
je 0x5f8a8e
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
jmp 0x5f8a95
jmp 0x5f89b6
cmp dword [ebp + 0x14], 0
jbe 0x5f8aab
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8ab9
cmp dword [ebp + 0x18], 0
je 0x5f8ae0
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8ae0
cmp dword [ebp + 0xc], 0
je 0x5f8acc
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
cmp dword [0x93565c], 0
je 0x5f8e57
cmp dword [ebp + 0xc], 0
je 0x5f8b00
push 0x7be1dc
call fcn.006179e0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x5f8b13
push str._nPhase_2...IC1..
call fcn.006179e0
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 1
push str.PAULAWAULA
push str.PAULA
push 0x15
lea edx, [ebp - 0x1b8]
push edx
mov eax, dword [0x93565c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp esi, esp
call fcn.00535fca
mov dword [0x935660], eax
cmp dword [ebp + 0x14], 0
jbe 0x5f8b60
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8b6e
cmp dword [ebp + 0x18], 0
je 0x5f8b95
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8b95
cmp dword [ebp + 0xc], 0
je 0x5f8b81
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
mov dword [ebp - 0x30], 0
cmp dword [0x935660], 0
je 0x5f8bce
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x178]
push eax
push str._PAULA_LiveUpdate_DownLoad_
mov ecx, dword [0x935660]
push ecx
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x14], 0
jbe 0x5f8be4
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8bf2
cmp dword [ebp + 0x18], 0
je 0x5f8c19
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8c19
cmp dword [ebp + 0xc], 0
je 0x5f8c05
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
cmp dword [ebp - 0x30], 0
jne 0x5f8d3e
cmp dword [ebp - 0x18], 0x8000000
je 0x5f8d3e
cmp dword [0x935660], 0
je 0x5f8c69
mov esi, esp
mov eax, dword [0x935660]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.00535fca
mov dword [0x935660], 0
mov esi, esp
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00535fca
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
push 0x8000000
push 1
push str.PAULAWAULA
push str.PAULA
push 0x15
lea ecx, [ebp - 0x1b8]
push ecx
mov edx, dword [0x93565c]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp esi, esp
call fcn.00535fca
mov dword [0x935660], eax
mov dword [ebp - 0x30], 0
cmp dword [0x935660], 0
je 0x5f8cdb
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x178]
push eax
push str._PAULA_LiveUpdate_DownLoad_
mov ecx, dword [0x935660]
push ecx
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x14], 0
jbe 0x5f8cf1
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8cff
cmp dword [ebp + 0x18], 0
je 0x5f8d26
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8d26
cmp dword [ebp + 0xc], 0
je 0x5f8d12
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
cmp dword [ebp - 0x30], 0
je 0x5f8d39
push 0x8000000
call fcn.005f9a30
add esp, 4
jmp 0x5f8e55
cmp dword [ebp - 0x30], 0
jne 0x5f8e55
cmp dword [ebp - 0x18], 0
je 0x5f8e55
cmp dword [0x935660], 0
je 0x5f8d8b
mov esi, esp
mov eax, dword [0x935660]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.00535fca
mov dword [0x935660], 0
mov esi, esp
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00535fca
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 1
push str.PAULAWAULA
push str.PAULA
push 0x15
lea ecx, [ebp - 0x1b8]
push ecx
mov edx, dword [0x93565c]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp esi, esp
call fcn.00535fca
mov dword [0x935660], eax
mov dword [ebp - 0x30], 0
cmp dword [0x935660], 0
je 0x5f8dfa
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x178]
push eax
push str._PAULA_LiveUpdate_DownLoad_
mov ecx, dword [0x935660]
push ecx
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x14], 0
jbe 0x5f8e10
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8e1e
cmp dword [ebp + 0x18], 0
je 0x5f8e45
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8e45
cmp dword [ebp + 0xc], 0
je 0x5f8e31
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
cmp dword [ebp - 0x30], 0
je 0x5f8e55
push 0
call fcn.005f9a30
add esp, 4
jmp 0x5f8e6a
cmp dword [ebp + 0xc], 0
je 0x5f8e6a
push str.FAILED_
call fcn.006179e0
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x5f8e98
cmp dword [0x935660], 0
je 0x5f8e98
mov esi, esp
mov eax, dword [0x935660]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.00535fca
mov dword [0x935660], 0
cmp dword [0x935660], 0
jne 0x5f8f80
cmp dword [0x93576c], 0
jne 0x5f8f80
cmp dword [0x935768], 0
jne 0x5f8f80
mov dword [ebp - 0x1c4], 0
cmp dword [ebp + 0xc], 0
je 0x5f8edc
push str._nAttempting_backup_server...
call fcn.006179e0
add esp, 4
cmp dword [ebp + 0x14], 0
jbe 0x5f8ef2
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8f00
cmp dword [ebp + 0x18], 0
je 0x5f8f27
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f8f27
cmp dword [ebp + 0xc], 0
je 0x5f8f13
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
mov dword [0x93576c], 1
push 0x93565c
call fcn.00533a9a
add esp, 4
mov eax, dword [ebp + 0x18]
push eax
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call fcn.00532398
add esp, 0x14
mov dword [ebp - 0x1c4], eax
mov dword [0x93576c], 0
mov eax, dword [ebp - 0x1c4]
jmp 0x5f93c7
cmp dword [0x935660], 0
jne 0x5f924c
cmp dword [ebp + 0xc], 0
je 0x5f8fa0
push str..FAILED.._n____...Attempting_IC_SAT..
call fcn.006179e0
add esp, 4
cmp dword [0x93565c], 0
je 0x5f8fc8
mov esi, esp
mov eax, dword [0x93565c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.00535fca
mov dword [0x93565c], 0
cmp dword [ebp + 0x14], 0
jbe 0x5f8fde
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f8fec
cmp dword [ebp + 0x18], 0
je 0x5f9013
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f9013
cmp dword [ebp + 0xc], 0
je 0x5f8fff
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
cmp dword [0x935768], 0
jne 0x5f9245
mov byte [ebp - 0x2d0], 0
push 0x103
push 0
lea eax, [ebp - 0x2cf]
push eax
call fcn.00533469
add esp, 0xc
xor eax, eax
mov word [ebp - 0x2e8], ax
xor eax, eax
mov dword [ebp - 0x2e6], eax
mov dword [ebp - 0x2e2], eax
mov dword [ebp - 0x2de], eax
mov word [ebp - 0x2da], ax
xor eax, eax
mov word [ebp - 0x300], ax
xor eax, eax
mov dword [ebp - 0x2fe], eax
mov dword [ebp - 0x2fa], eax
mov dword [ebp - 0x2f6], eax
mov word [ebp - 0x2f2], ax
push str.StoreId.dat
lea eax, [ebp - 0x2d0]
push eax
call fcn.005346bb
add esp, 8
mov eax, dword [0x818784]
add eax, 0xc2
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__network.c
lea ecx, [ebp - 0x300]
push ecx
call fcn.00532d7f
add esp, 0xc
test eax, eax
je 0x5f9245
push 0
push 0
push 0
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
call fcn.00533153
add esp, 0x14
test eax, eax
je 0x5f9245
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x2e8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2e4]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2e0]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x2dc]
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x300]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2fc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2f8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x2f4]
mov dword [eax + 0xc], edx
call fcn.005328f7
add esp, 0x20
push eax
call fcn.00533fd1
add esp, 4
cmp eax, 0x6ddd00
jle 0x5f9245
mov dword [ebp - 0x30c], 0
cmp dword [ebp + 0xc], 0
je 0x5f916d
push str._nAttempting_to_establish_INet_connection...
call fcn.006179e0
add esp, 4
mov eax, dword [ebp + 0x18]
push eax
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x1b7740
call fcn.005fe350
add esp, 0x10
test eax, eax
je 0x5f9245
cmp dword [ebp + 0xc], 0
je 0x5f91ae
push str._nTrying_FTP_connection_process_again...
call fcn.006179e0
add esp, 4
cmp dword [ebp + 0x14], 0
jbe 0x5f91c4
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
cmp eax, dword [ebp + 0x14]
jae 0x5f91d2
cmp dword [ebp + 0x18], 0
je 0x5f91f9
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x5f91f9
cmp dword [ebp + 0xc], 0
je 0x5f91e5
push str._nTIME_OUT__n
call fcn.006179e0
add esp, 4
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
mov dword [0x935768], 1
mov eax, dword [ebp + 0x18]
push eax
call fcn.00533cd9
sub eax, dword [ebp - 0x184]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call fcn.00532398
add esp, 0x14
mov dword [ebp - 0x30c], eax
mov dword [0x935768], 0
mov eax, dword [ebp - 0x30c]
jmp 0x5f93c7
xor eax, eax
jmp 0x5f93c7
cmp dword [ebp + 0xc], 0
je 0x5f925f
push str..OK.
call fcn.006179e0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x5f9272
push str._nEnumerating_FTP_server_root_directory...
call fcn.006179e0
add esp, 4
mov eax, dword [0x818784]
add eax, 0xe3
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__network.c
call fcn.00534418
add esp, 8
mov dword [0x935664], eax
cmp dword [0x935664], 0
jne 0x5f92ac
push 0x93565c
call fcn.00533a9a
add esp, 4
xor eax, eax
jmp 0x5f93c7
mov dword [ebp - 0x190], 0
lea eax, [ebp - 0x14c]
push eax
call fcn.00532325
add esp, 4
test eax, eax
je 0x5f92ce
jmp 0x5f9375
mov eax, dword [ebp - 0x178]
and eax, 0x10
je 0x5f92de
jmp 0x5f9375
movsx eax, byte [ebp - 0x14c]
cmp eax, 0x2e
jne 0x5f92ef
jmp 0x5f9375
mov eax, dword [ebp - 0x178]
and eax, 2
je 0x5f92fc
jmp 0x5f9375
mov eax, dword [ebp - 0x178]
and eax, 4
je 0x5f9309
jmp 0x5f9375
push str._AltHT
lea eax, [ebp - 0x14c]
push eax
call fcn.00535f48
add esp, 8
test eax, eax
jne 0x5f934c
push 1
lea eax, [ebp - 0x14c]
push eax
call fcn.005325f5
add esp, 8
mov eax, dword [ebp - 0x190]
add eax, 1
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 1
jg 0x5f934c
jmp 0x5f9375
push 0
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [0x935664]
push ecx
call fcn.005326d6
add esp, 0xc
test eax, eax
jne 0x5f9375
mov eax, dword [0x935770]
add eax, 1
mov dword [0x935770], eax
mov esi, esp
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.WININET.dll_InternetFindNextFileA]
cmp esi, esp
call fcn.00535fca
test eax, eax
jne 0x5f92b6
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0x10]
push eax
push 0x93565c
call fcn.005f9df0
add esp, 8
mov eax, dword [0x935660]
push edx
mov ecx, ebp
push eax
lea edx, [0x5f93f8]
call fcn.0053491d
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535561
add esp, 0x3d0
cmp ebp, esp
call fcn.00535fca
mov esp, ebp
pop ebp
ret