Function at 0x41f2a0
Capabilities:
Connect to http server
Create http request
Delete file
Get common file path
Send file using ftp

Disassembly:
push 0xffffffffffffffff
push 0x61ced5
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0x64c], eax
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x664]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x24]
mov ebp, dword [esp + 0x674]
sub eax, 0x10
push eax
call fcn.00401de0
add eax, 0x10
add esp, 4
mov dword [esp + 0x40], eax
xor edi, edi
mov dword [esp + 0x66c], edi
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
cmp dword [0x6bd364], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edi
jne 0x41f348
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
test eax, eax
je 0x41f348
mov ecx, ebx
call fcn.0041e050
push edi
mov ecx, eax
call fcn.0044b6c0
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 0x20]
add esp, 4
push 1
push edi
push eax
call dword [sym.imp.user32.dll_InvalidateRect]
lea ecx, [esp + 0x24c]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edx, [esp + 0x354]
push edx
push edi
push 0x647678
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
lea eax, [esp + 0x354]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41f381
sub eax, esi
push eax
lea ecx, [esp + 0x358]
push ecx
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.004014d0
mov eax, dword [esi]
push 0
push 0
push eax
mov ecx, ebx
call fcn.0041e050
push eax
call fcn.00436dc0
mov edx, dword [ebx]
mov eax, dword [edx + 0x5c]
add esp, 0x10
push 0
mov ecx, ebx
call eax
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov ecx, dword [ebp + 0xd0]
mov edx, dword [ebp + 0xcc]
push ecx
push edx
lea eax, [esp + 0x254]
push str.ftpftp:___s:_d
push eax
call fcn.005a5a2e
mov eax, dword [ebp + 0xc8]
add esp, 0x10
mov ecx, eax
neg ecx
sbb ecx, ecx
push 0
lea edx, [esp + 0x250]
and ecx, edx
neg eax
push 0
sbb eax, eax
push ecx
and eax, 3
push eax
mov eax, dword [0x6bd288]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x41f4d8
cmp dword [0x6bc854], edi
jne 0x41f9d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004e0cd0
lea edx, [esp + 0x28]
push str.Error:_could_not_initialize_Internet_connection._n
push edx
mov ecx, eax
mov byte [esp + 0x67c], 1
call fcn.0040ef20
add esp, 0x10
push esi
mov byte [esp + 0x670], 2
mov eax, dword [eax]
push esi
push eax
call fcn.00572369
mov byte [esp + 0x66c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f4a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f9d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41f9d1
push 4
lea ecx, [esp + 0x30]
push ecx
push 2
push esi
mov dword [esp + 0x3c], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc4]
mov ecx, dword [ebp + 0xb8]
mov edx, dword [ebp + 0xb0]
push 0
neg edi
sbb edi, edi
and edi, 0x8000000
push edi
push 1
push eax
movzx eax, word [ebp + 0xb4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x41f6f0
cmp dword [0x6bc854], eax
jne 0x41f6f0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], 0x200
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00404eb0
mov esi, eax
push 0x6476c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x670], 3
call fcn.00404eb0
mov edi, eax
mov byte [esp + 0x66c], 4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push edx
call fcn.004e0cd0
lea ecx, [esp + 0x30]
push str.Error:_could_not_connect_to_FTP_server._n
push ecx
mov ecx, eax
mov byte [esp + 0x67c], 5
call fcn.0040ef20
push edi
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x688], 6
call fcn.004049e0
push esi
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x694], 7
call fcn.004049e0
add esp, 0x28
push 0
mov byte [esp + 0x670], 8
mov eax, dword [eax]
push 0
push eax
call fcn.00572369
mov byte [esp + 0x66c], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f61f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f66f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f6bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f9c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41f9c2
mov eax, dword [ebp + 0xd4]
lea edx, [esp + 0x4c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x41f700
lea ecx, [esp + 0x4c]
push 0x2f
push ecx
call fcn.005a66f0
lea edx, [esp + 0x54]
push 0x5c
push edx
mov esi, eax
call fcn.005a66f0
add esp, 0x10
cmp eax, esi
jbe 0x41f72f
mov esi, eax
lea eax, [esp + 0x4c]
push 0x2e
push eax
call fcn.005a66f0
add esp, 8
cmp eax, esi
ja 0x41f77d
mov ecx, dword [ebp + 0x94]
mov eax, dword [ecx*4 + 0x6a7180]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41f751
lea edi, [esp + 0x4c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x41f763
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
push 4
lea edx, [esp + 0x30]
push edx
push 2
push eax
mov dword [esp + 0x3c], 0x1d4c0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [ebx + 0x24]
mov edx, dword [esp + 0x14]
push 0
push 2
lea ecx, [esp + 0x54]
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_FtpPutFileA]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x41f977
cmp dword [0x6bc854], eax
jne 0x41f9b7
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x460]
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x48], 0x200
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
lea eax, [esp + 0x45c]
push eax
lea ecx, [esp + 0x20]
call fcn.00404eb0
mov esi, eax
push 0x6476c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x670], 9
call fcn.00404eb0
mov edi, eax
mov byte [esp + 0x66c], 0xa
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004e0cd0
lea edx, [esp + 0x30]
push str.Error_uploading_file._n
push edx
mov ecx, eax
mov byte [esp + 0x67c], 0xb
call fcn.0040ef20
push edi
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x688], 0xc
call fcn.004049e0
push esi
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x694], 0xd
call fcn.004049e0
add esp, 0x28
push 0
mov byte [esp + 0x670], 0xe
mov eax, dword [eax]
push 0
push eax
call fcn.00572369
mov byte [esp + 0x66c], 0xd
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f8ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 0xc
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f8d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 0xb
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f8fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 0xa
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 9
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f94d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x66c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f9b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41f9b7
cmp dword [ebp + 0xd8], 0
je 0x41f9b7
lea esi, [ebp + 0xdc]
push esi
mov ecx, 0x646c30
call fcn.004011f0
add esp, 4
test al, al
je 0x41f9b7
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.004486a0
mov eax, dword [eax]
call fcn.004e1000
lea ecx, [esp + 0x1c]
call fcn.00401280
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov edx, dword [ebx]
mov eax, dword [esp + 0x44]
mov edx, dword [edx + 0x5c]
push eax
mov ecx, ebx
call edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004074e0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov dword [esp + 0x66c], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x664]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.005a58d9
add esp, 0x660
ret 4