Function at 0x447c20
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5974ab
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xb4], eax
je 0x448059
cmp dword [edi + 0x1c], 0
je 0x448059
cmp dword [edi + 0x10], 0
jne 0x448059
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x447cbc
push ecx
call fcn.004475d0
mov dword [edi + 0x14], 0
push 0xd8
call fcn.0052d778
add esp, 4
mov dword [ebp - 0xc4], eax
push dword [ebp - 0xa8]
mov dword [ebp - 4], 0
mov ecx, eax
push str.POST
push esi
push dword [edi + 0x20]
call fcn.004463d0
push dword [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
mov dword [edi + 0x10], eax
call fcn.00403760
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.004cbbe0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
lea edx, [ebp - 0xc0]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004cc010
mov esi, dword [ebp - 0xc0]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447d74
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00412890
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0xa4]
cmovae ecx, dword [ebp - 0x44]
call fcn.004cbb60
push str.filename
lea ecx, [ebp - 0x2c]
call fcn.00403760
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.0040b5a0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403720
lea ecx, [ebp - 0x5c]
call fcn.00403990
cmp dword [ebx + 0x18], 0
je 0x447f29
cmp dword [ebp - 0xac], 0
je 0x447f29
push str.offset
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x8c]
call fcn.00403cb0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403720
lea ecx, [ebp - 0x8c]
call fcn.00403990
push 0x5df010
lea ecx, [ebp - 0x5c]
call fcn.004037a0
push dword [ebp - 0xac]
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.00403cb0
add esp, 4
lea ecx, [ebp - 0x5c]
push eax
call fcn.00403720
lea ecx, [ebp - 0x8c]
call fcn.00403990
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0
cmovae eax, dword [ebp - 0x5c]
push 0x80
push 4
push 0
push 0
push SysReAllocString
push eax
mov dword [ebp - 0xa8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xb0], eax
cmp eax, 0xffffffff
je 0x447e9f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea ecx, [ebp - 0x160]
call fcn.00419cb0
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x160]
call fcn.00419bc0
push eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8c]
call fcn.004202e0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403720
lea ecx, [ebp - 0x8c]
call fcn.00403990
lea ecx, [ebp - 0x74]
call fcn.00403990
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0xa8]
mov dword [eax + 0x60], ecx
lea ecx, [ebp - 0x160]
call fcn.00417c90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
jmp 0x447f48
push str.offset0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x74]
call fcn.00403cb0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403720
lea ecx, [ebp - 0x74]
call fcn.00403990
cmp dword [ebp - 0xb4], 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x74]
jne 0x447f63
push str.mode0
jmp 0x447f68
push str.mode1
call fcn.00403cb0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403720
lea ecx, [ebp - 0x74]
call fcn.00403990
mov edx, dword [edi + 0x10]
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0xac]
test edi, edi
je 0x447fab
xor ecx, ecx
cmp dword [ebx + 0x18], ecx
setne cl
lea ecx, [ecx*4 + 3]
push ecx
push dword [ebp - 0xb4]
push edi
push ecx
jmp 0x447fb2
push ecx
push 0
push 0
push 1
cmp dword [ebp - 0x18], 8
mov ecx, edx
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Content_Type:_application_x_www_form_urlencoded_r_n
call fcn.004465f0
lea ecx, [ebp - 0x2c]
call fcn.00403990
test esi, esi
je 0x447fff
mov ecx, dword [ebp - 0xb8]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x447ff5
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x448025
push ecx
push esi
call fcn.0052d747
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x448035
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44802b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44802b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0052d747
add esp, 8
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00403990
mov eax, 1
jmp 0x44805b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18