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

Disassembly:
push 0x1d4
mov eax, 0x43e240
call fcn.0042b376
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.00402ec4
push 0xf
pop esi
push edi
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd0], esi
call fcn.00403636
push edi
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xb4], esi
call fcn.00403636
lea esi, [ebp - 0xac]
call fcn.00402e5f
lea esi, [ebp - 0x8c]
call fcn.00402e5f
lea esi, [ebp - 0x70]
call fcn.00402e5f
lea esi, [ebp - 0x54]
call fcn.00402e5f
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.00402e94
mov ecx, esi
call fcn.00405747
cmp eax, edi
jge 0x40597d
mov ebx, 0x80004005
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x54]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0x70]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0x8c]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xcc]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xe8]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp + 8]
call fcn.0040329c
lea esi, [ebp + 0x28]
call fcn.004087c9
push dword [ebp + 0x28]
call fcn.00428e43
mov eax, ebx
jmp 0x4060aa
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 str.AOF_r_n
call fcn.0040801d
lea edi, [ebp - 0x1e0]
call fcn.00426ea5
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004270be
cmp dword [eax + 0x18], 0x10
jb 0x4059d6
mov eax, dword [eax + 4]
jmp 0x4059d9
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.0040329c
lea esi, [ebp - 0x1e0]
mov byte [ebp - 4], 3
call fcn.00417161
mov eax, dword [ebx + 0xa8]
cmp eax, edi
je 0x405f6d
cmp dword [ebp - 0x58], 0x10
mov ecx, dword [ebp - 0x6c]
jae 0x405a1c
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x74], 0x10
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xf0], ecx
jae 0x405a34
lea edx, [ebp - 0x88]
cmp dword [ebp - 0x94], 0x10
mov ecx, dword [ebp - 0xa8]
jae 0x405a49
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 0x405f6d
cmp dword [ebp - 0x38], 3
jne 0x405c06
test byte [ebp + 0x24], 8
je 0x405ae5
lea eax, [ebp - 0x114]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xf0], esp
push 4
push 0x445838
call fcn.0040801d
lea edi, [ebp - 0x188]
call fcn.00426ea5
mov byte [ebp - 4], 5
mov dword [ebp - 0xec], 1
call fcn.00426f82
mov dword [ebp - 4], 6
mov dword [ebp - 0xec], 3
jmp 0x405b35
lea eax, [ebp - 0x130]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xf0], esp
push 3
push 0x445840
call fcn.0040801d
lea edi, [ebp - 0x1e0]
call fcn.00426ea5
mov dword [ebp - 4], 7
mov dword [ebp - 0xec], 4
call fcn.00426f82
mov dword [ebp - 4], 8
mov dword [ebp - 0xec], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x405b40
mov eax, dword [eax + 4]
jmp 0x405b43
add eax, 4
push eax
lea ecx, [ebp - 0x30]
call fcn.00402e72
xor edi, edi
test byte [ebp - 0xec], 8
je 0x405b6c
and dword [ebp - 0xec], 0xfffffff7
push edi
push 1
lea ecx, [ebp - 0x130]
call fcn.0040329c
test byte [ebp - 0xec], 4
je 0x405b87
and dword [ebp - 0xec], 0xfffffffb
lea esi, [ebp - 0x1e0]
call fcn.00417161
test byte [ebp - 0xec], 2
je 0x405ba5
and dword [ebp - 0xec], 0xfffffffd
push edi
push 1
lea ecx, [ebp - 0x114]
call fcn.0040329c
mov dword [ebp - 4], 3
test byte [ebp - 0xec], 1
je 0x405bc0
lea esi, [ebp - 0x188]
call fcn.00417161
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
jae 0x405bcc
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x405bd8
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.0040329c
xor edi, edi
jmp 0x405c2b
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
jae 0x405c12
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 0x405f6d
cmp dword [ebp - 0x38], 3
mov dword [ebp - 0xf8], edi
jne 0x405ffc
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 0x405dd9
push dword [ebp - 0xec]
lea eax, [ebx + 0x90]
call fcn.0040824c
push eax
lea ecx, [ebp - 0x30]
call fcn.00402e94
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.D_N4
call fcn.0040801d
lea edi, [ebp - 0x188]
call fcn.00426ea5
mov byte [ebp - 4], 0xa
call fcn.00426f82
cmp dword [eax + 0x18], 0x10
jb 0x405cc4
mov esi, dword [eax + 4]
jmp 0x405cc7
lea esi, [eax + 4]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ccc
sub eax, edi
push eax
push esi
or edx, 0xffffffff
lea eax, [ebp - 0x30]
call fcn.0040865d
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.0040329c
lea esi, [ebp - 0x188]
mov byte [ebp - 4], 9
call fcn.00417161
cmp byte [ebp - 0xf1], 0
je 0x405d82
lea eax, [ebp - 0x114]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xf0], esp
push 4
push str._r_nMO
call fcn.0040801d
lea edi, [ebp - 0x188]
call fcn.00426ea5
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.004270be
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x405d5b
mov eax, dword [eax + 4]
jmp 0x405d5e
add eax, 4
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004080db
push 0
push 1
lea ecx, [ebp - 0x114]
call fcn.0040329c
lea esi, [ebp - 0x188]
call fcn.00417161
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x405d8e
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.0040329c
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 0x405c69
xor edi, edi
cmp dword [ebx + 0x6c], 0x10
mov ecx, dword [ebx + 0x68]
jb 0x405de7
mov eax, dword [ebx + 0x58]
jmp 0x405dea
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 0x405f6d
mov dword [ebp - 0xf0], edi
push 0x13
lea edi, [ebp - 0xf0]
mov esi, ebx
call fcn.0040640f
test eax, eax
jl 0x405eb0
mov eax, dword [ebp - 0xf0]
push 0x64
xor edx, edx
pop ecx
div ecx
cmp eax, 2
je 0x405eb0
cmp eax, 3
jne 0x405f6d
test byte [ebp + 0x24], 2
jne 0x405f6d
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00403636
push 0x21
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.00406389
xor esi, esi
cmp eax, esi
jge 0x405e86
push esi
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040329c
jmp 0x405f6d
mov edi, ebx
call fcn.004062e8
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebx + 0x38]
call fcn.004031c2
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040329c
xor edi, edi
jmp 0x405911
mov eax, dword [ebp + 0x38]
sub eax, dword [ebp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x405fe5
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00403636
push 1
lea edi, [ebp - 0x30]
mov esi, ebx
mov byte [ebp - 4], 0xe
call fcn.00406389
xor esi, esi
cmp eax, esi
jl 0x405e72
mov eax, dword [ebp + 0x38]
sub eax, dword [ebp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
mov edi, 0x80004005
test eax, eax
jbe 0x405f59
push esi
lea eax, [ebp + 0x28]
call fcn.0040824c
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x405f17
mov eax, dword [eax + 4]
jmp 0x405f1a
add eax, 4
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
xor eax, eax
call fcn.004085bd
cmp eax, 0xffffffff
jne 0x405f3f
mov eax, dword [ebp + 0x38]
sub eax, dword [ebp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
inc esi
cmp esi, eax
jb 0x405f00
jmp 0x405f59
push esi
lea eax, [ebp + 0x28]
call fcn.0040824c
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [ebp - 0xe8]
call fcn.004031c2
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040329c
test edi, edi
jge 0x405fe5
mov edi, ebx
call fcn.004062e8
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x54]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0x70]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0x8c]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xcc]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xe8]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp + 8]
call fcn.0040329c
lea esi, [ebp + 0x28]
call fcn.004087c9
push dword [ebp + 0x28]
call fcn.00428e43
mov eax, 0x80004005
jmp 0x4060aa
push 5
lea edi, [ebp - 0xf8]
mov esi, ebx
call fcn.0040640f
test eax, eax
jge 0x406006
xor eax, eax
jmp 0x40600c
push edi
push eax
call dword [sym.imp.WININET.dll_FtpGetFileSize]
jmp 0x40600e
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.004031c2
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004031c2
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.0040329c
push edi
push esi
lea ecx, [ebp - 0x70]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0x8c]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xcc]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp - 0xe8]
call fcn.0040329c
push edi
push esi
lea ecx, [ebp + 8]
call fcn.0040329c
lea esi, [ebp + 0x28]
call fcn.004087c9
push dword [ebp + 0x28]
call fcn.00428e43
xor eax, eax
pop ecx
call fcn.0042b3f9
ret 0x38