Function at 0x405ad4
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push 0x1d4
mov eax, 0x43eb58
call fcn.0042bb26
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0xec], edi
mov dword [ebp - 4], 1
lea eax, [ebx + 0x70]
mov dword [ebx + 0xc4], edi
mov dword [ebx + 0xc0], edi
call fcn.004031e5
push 0xf
pop esi
push edi
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd0], esi
call fcn.00403957
push edi
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xb4], esi
call fcn.00403957
lea esi, [ebp - 0xac]
call fcn.00403180
lea esi, [ebp - 0x8c]
call fcn.00403180
lea esi, [ebp - 0x70]
call fcn.00403180
lea esi, [ebp - 0x54]
call fcn.00403180
sub esp, 0x1c
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xf8], esp
push eax
lea esi, [ebp - 0xcc]
call fcn.004031b5
mov ecx, esi
call fcn.004059ba
cmp eax, edi
jge 0x405bef
mov ebx, 0x80004005
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x54]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0x70]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0x8c]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0xcc]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0xe8]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp + 8]
call fcn.004035bd
lea esi, [ebp + 0x28]
call fcn.00408999
push dword [ebp + 0x28]
call fcn.004295ef
mov eax, ebx
jmp 0x406319
mov al, byte [ebp + 0x24]
not al
movzx eax, al
push edi
and eax, 1
push edi
shl eax, 0x1a
push edi
or eax, 0x80403000
push edi
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x30]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xf0], esp
push 0xb
push 0x445b7c
call fcn.004081ed
lea edi, [ebp - 0x1e0]
call fcn.00427366
mov byte [ebp - 4], 4
call fcn.004274a1
cmp dword [eax + 0x18], 0x10
jb 0x405c46
mov eax, dword [eax + 4]
jmp 0x405c49
add eax, 4
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x30]
mov dword [ebx + 0xa8], eax
call fcn.004035bd
lea esi, [ebp - 0x1e0]
mov byte [ebp - 4], 3
call fcn.00404654
mov eax, dword [ebx + 0xa8]
cmp eax, edi
je 0x4061de
cmp dword [ebp - 0x58], 0x10
mov ecx, dword [ebp - 0x6c]
jae 0x405c8c
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x74], 0x10
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xf0], ecx
jae 0x405ca4
lea edx, [ebp - 0x88]
cmp dword [ebp - 0x94], 0x10
mov ecx, dword [ebp - 0xa8]
jae 0x405cb9
lea ecx, [ebp - 0xa8]
mov esi, dword [ebp - 0x38]
dec esi
neg esi
push 1
sbb esi, esi
and esi, 0xf8000000
add esi, 0x8000000
push esi
push dword [ebp - 0x38]
push dword [ebp - 0xf0]
push edx
push dword [ebp - 0x90]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 0xac], eax
cmp eax, edi
je 0x4061de
cmp dword [ebp - 0x38], 3
jne 0x405e76
test byte [ebp + 0x24], 8
je 0x405d55
lea eax, [ebp - 0x114]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xf0], esp
push 4
push 0x445b88
call fcn.004081ed
lea edi, [ebp - 0x188]
call fcn.00427366
mov byte [ebp - 4], 5
mov dword [ebp - 0xec], 1
call fcn.004274a1
mov dword [ebp - 4], 6
mov dword [ebp - 0xec], 3
jmp 0x405da5
lea eax, [ebp - 0x130]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xf0], esp
push 3
push 0x445b90
call fcn.004081ed
lea edi, [ebp - 0x1e0]
call fcn.00427366
mov dword [ebp - 4], 7
mov dword [ebp - 0xec], 4
call fcn.004273d9
mov dword [ebp - 4], 8
mov dword [ebp - 0xec], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x405db0
mov eax, dword [eax + 4]
jmp 0x405db3
add eax, 4
push eax
lea ecx, [ebp - 0x30]
call fcn.00403193
xor edi, edi
test byte [ebp - 0xec], 8
je 0x405ddc
and dword [ebp - 0xec], 0xfffffff7
push edi
push 1
lea ecx, [ebp - 0x130]
call fcn.004035bd
test byte [ebp - 0xec], 4
je 0x405df7
and dword [ebp - 0xec], 0xfffffffb
lea esi, [ebp - 0x1e0]
call fcn.00404654
test byte [ebp - 0xec], 2
je 0x405e15
and dword [ebp - 0xec], 0xfffffffd
push edi
push 1
lea ecx, [ebp - 0x114]
call fcn.004035bd
mov dword [ebp - 4], 3
test byte [ebp - 0xec], 1
je 0x405e30
lea esi, [ebp - 0x188]
call fcn.00404654
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
jae 0x405e3c
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x405e48
lea eax, [ebp - 0x2c]
push 1
push dword [ebp - 0xf8]
push edi
push edi
push edi
push ecx
push eax
push dword [ebx + 0xac]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push edi
push 1
lea ecx, [ebp - 0x30]
mov dword [ebx + 0xb0], eax
call fcn.004035bd
xor edi, edi
jmp 0x405e9b
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
jae 0x405e82
lea ecx, [ebp - 0x50]
push edi
push closesocket
push closesocket
push ecx
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov dword [ebx + 0xb0], eax
mov eax, dword [ebx + 0xb0]
cmp eax, edi
je 0x4061de
cmp dword [ebp - 0x38], 3
mov dword [ebp - 0xf8], edi
jne 0x40626b
mov eax, dword [ebx + 0xa0]
sub eax, dword [ebx + 0x9c]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [ebp - 0xec], edi
test eax, eax
jbe 0x406048
push dword [ebp - 0xec]
lea eax, [ebx + 0x90]
call fcn.0040841c
push eax
lea ecx, [ebp - 0x30]
call fcn.004031b5
lea eax, [ebp - 0x114]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0xf0], esp
push 4
push str.ApZJ
call fcn.004081ed
lea edi, [ebp - 0x188]
call fcn.00427366
mov byte [ebp - 4], 0xa
call fcn.004274a1
cmp dword [eax + 0x18], 0x10
jb 0x405f34
mov esi, dword [eax + 4]
jmp 0x405f37
lea esi, [eax + 4]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f3c
sub eax, edi
push eax
push esi
or edx, 0xffffffff
lea eax, [ebp - 0x30]
call fcn.0040882d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffffe
cmp eax, ecx
push 0
push 1
lea ecx, [ebp - 0x114]
setne byte [ebp - 0xf1]
call fcn.004035bd
lea esi, [ebp - 0x188]
mov byte [ebp - 4], 9
call fcn.00404654
cmp byte [ebp - 0xf1], 0
je 0x405ff1
lea eax, [ebp - 0x114]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xf0], esp
push 4
push str._r_nZJ
call fcn.004081ed
lea edi, [ebp - 0x188]
call fcn.00427366
push eax
mov byte [ebp - 4], 0xb
call fcn.00427738
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x405fca
mov eax, dword [eax + 4]
jmp 0x405fcd
add eax, 4
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004082ab
push 0
push 1
lea ecx, [ebp - 0x114]
call fcn.004035bd
lea esi, [ebp - 0x188]
call fcn.00404654
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x405ffd
lea eax, [ebp - 0x2c]
push 0xa0000000
push dword [ebp - 0x1c]
push eax
push dword [ebx + 0xb0]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004035bd
mov eax, dword [ebx + 0xa0]
sub eax, dword [ebx + 0x9c]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0xec]
cmp dword [ebp - 0xec], eax
jb 0x405ed9
xor edi, edi
cmp dword [ebx + 0x6c], 0x10
mov ecx, dword [ebx + 0x68]
jb 0x406056
mov eax, dword [ebx + 0x58]
jmp 0x406059
lea eax, [ebx + 0x58]
push ecx
push eax
push 0xffffffffffffffff
push edi
push dword [ebx + 0xb0]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x4061de
mov dword [ebp - 0xf0], edi
push 0x13
lea edi, [ebp - 0xf0]
mov esi, ebx
call fcn.004066d0
test eax, eax
jl 0x40611e
mov eax, dword [ebp - 0xf0]
push 0x64
xor edx, edx
pop ecx
div ecx
cmp eax, 2
je 0x40611e
cmp eax, 3
jne 0x4061de
test byte [ebp + 0x24], 2
jne 0x4061de
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00403957
push 0x21
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.0040664a
test eax, eax
jge 0x4060f4
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004035bd
jmp 0x4061de
call fcn.004065a8
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebx + 0x38]
call fcn.004034e3
xor ebx, ebx
push 0
inc ebx
push ebx
lea ecx, [ebp - 0x30]
call fcn.004035bd
xor edi, edi
jmp 0x405b83
mov eax, dword [ebp + 0x38]
sub eax, dword [ebp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x406254
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00403957
push 1
lea edi, [ebp - 0x30]
mov esi, ebx
mov byte [ebp - 4], 0xe
call fcn.0040664a
xor esi, esi
cmp eax, esi
jge 0x40615c
push esi
jmp 0x4060e1
mov eax, dword [ebp + 0x38]
sub eax, dword [ebp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
mov edi, 0x80004005
test eax, eax
jbe 0x4061ca
push esi
lea eax, [ebp + 0x28]
call fcn.0040841c
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x406188
mov eax, dword [eax + 4]
jmp 0x40618b
add eax, 4
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
xor eax, eax
call fcn.0040878d
cmp eax, 0xffffffff
jne 0x4061b0
mov eax, dword [ebp + 0x38]
sub eax, dword [ebp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
inc esi
cmp esi, eax
jb 0x406171
jmp 0x4061ca
push esi
lea eax, [ebp + 0x28]
call fcn.0040841c
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [ebp - 0xe8]
call fcn.004034e3
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004035bd
test edi, edi
jge 0x406254
call fcn.004065a8
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x54]
call fcn.004035bd
push esi
push edi
lea ecx, [ebp - 0x70]
call fcn.004035bd
push esi
push edi
lea ecx, [ebp - 0x8c]
call fcn.004035bd
push esi
push edi
lea ecx, [ebp - 0xac]
call fcn.004035bd
push esi
push edi
lea ecx, [ebp - 0xcc]
call fcn.004035bd
push esi
push edi
lea ecx, [ebp - 0xe8]
call fcn.004035bd
push esi
push edi
lea ecx, [ebp + 8]
call fcn.004035bd
lea esi, [ebp + 0x28]
call fcn.00408999
push dword [ebp + 0x28]
call fcn.004295ef
mov eax, 0x80004005
jmp 0x406319
push 5
lea edi, [ebp - 0xf8]
mov esi, ebx
call fcn.004066d0
test eax, eax
jge 0x406275
xor eax, eax
jmp 0x40627b
push edi
push eax
call dword [sym.imp.WININET.dll_FtpGetFileSize]
jmp 0x40627d
mov eax, dword [ebp - 0xf8]
xor edi, edi
push 0xffffffffffffffff
mov dword [ebx + 0xb4], eax
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.004034e3
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004034e3
mov eax, dword [ebp + 0x24]
xor esi, esi
inc esi
push edi
push esi
lea ecx, [ebp - 0x54]
mov dword [ebx + 0xc0], esi
mov dword [ebx + 0x8c], eax
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0x70]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0x8c]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0xcc]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp - 0xe8]
call fcn.004035bd
push edi
push esi
lea ecx, [ebp + 8]
call fcn.004035bd
lea esi, [ebp + 0x28]
call fcn.00408999
push dword [ebp + 0x28]
call fcn.004295ef
xor eax, eax
pop ecx
call fcn.0042bba9
ret 0x38