Function at 0x10043f4b
Capabilities:
Check for time delay via gettickcount
Check if file exists
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push 0x470
mov eax, 0x100ae0a7
call fcn.10091010
mov esi, edx
mov dword [ebp - 0x430], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
and dword [ebp - 4], 0
cmp dword [ebp + 0x24], 0
jne 0x10043f86
push 0x198
push 0x100caebc
push 0x100caee8
jmp 0x10043fab
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10043fc2
push 0x19f
push 0x100caebc
push 0x100caf08
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
add esp, 0x10
xor ebx, ebx
jmp 0x100442c7
xor eax, eax
mov dword [ebp - 0x418], 0xf
mov ebx, eax
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x42c], al
push eax
push eax
push eax
push 1
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x454], 0x100cad34
mov dword [ebp - 0x450], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x444], edi
test edi, edi
je 0x100442b6
push 1
push ebx
push 3
mov eax, 0x100bc7cc
push eax
push eax
push esi
push dword [ebp - 0x430]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x448], esi
test esi, esi
je 0x100442af
push 1
push 0x4000000
lea eax, [ebp - 0x454]
push eax
push ebx
push 0x100cadb8
push dword [ebp - 0x43c]
push 0x100cadc4
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x10044077
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
jmp 0x100442b6
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x430], esi
cmp esi, 0xffffffff
jne 0x100440e7
cmp dword [ebp + 0x28], 0x10
lea edi, [ebp + 0x14]
cmovae edi, dword [ebp + 0x14]
call fcn.10045657
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1c6
push 0x100caebc
push 0x100caf24
push esi
call fcn.100448e6
mov edi, dword [ebp - 0x444]
add esp, 0x18
mov eax, dword [ebp - 0x430]
jmp 0x1004428d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 0x460], eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0x28
push eax
push dword [ebp - 0x438]
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0x468], ecx
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x458], ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x10044283
xor ebx, ebx
lea eax, [ebp - 0x413]
push 0x3ff
push ebx
push eax
mov byte [ebp - 0x414], bl
call fcn.10090560
add esp, 0xc
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
push ebx
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x10044204
lea ecx, [ebp - 0x440]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x438]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x10044210
add ebx, dword [ebp - 0x440]
mov dword [ebp - 0x43c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44c], eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 5
jb 0x100441d5
push 0
lea eax, [ebp - 0x434]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x444]
mov eax, dword [ebp - 0x434]
test eax, eax
jne 0x1004419c
jmp 0x10044237
call fcn.10045657
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1f4
push 0x100caebc
push 0x100caf44
push esi
call fcn.100448e6
add esp, 0x18
mov eax, dword [ebp - 0x43c]
xor ebx, ebx
cmp eax, dword [ebp - 0x460]
sete bl
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x438]
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x10044283
call fcn.10045657
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x206
push 0x100caebc
push 0x100caf7c
push esi
call fcn.100448e6
add esp, 0x14
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x10044294
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x438]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x448]
call esi
push edi
call esi
jmp 0x100442b8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
push 0
push 1
lea ecx, [ebp - 0x42c]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.100072c0
mov eax, ebx
call fcn.10090fbf
ret