Function at 0x4218c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426522
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4301f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
jne 0x421915
jmp 0x421bb6
push 0
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jae 0x421939
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x421bb6
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004011c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00401350
sub eax, 1
push eax
push 0x5c
lea ecx, [ebp - 0x6c]
call fcn.00401f10
add eax, 1
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x6c]
call fcn.00401350
sub eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00401f30
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00401e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004012d0
lea ecx, [ebp - 0x6c]
call fcn.00401350
sub eax, 1
push eax
push 0x2e
lea ecx, [ebp - 0x6c]
call fcn.00401f10
add eax, 1
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x6c]
call fcn.00401350
sub eax, dword [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401f30
mov byte [ebp - 4], 2
push 0x429e38
lea ecx, [ebp - 0x50]
push ecx
call fcn.00402c70
add esp, 8
movzx edx, al
test edx, edx
je 0x421a0c
push 0x429e3c
lea ecx, [ebp - 0x50]
call fcn.00401ea0
jmp 0x421a7f
push 0x429e48
lea eax, [ebp - 0x50]
push eax
call fcn.00402c70
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x421a33
push str.image_gif
lea ecx, [ebp - 0x50]
call fcn.00401ea0
jmp 0x421a7f
push 0x429e58
lea edx, [ebp - 0x50]
push edx
call fcn.00402c70
add esp, 8
movzx eax, al
test eax, eax
je 0x421a5a
push str.image_png
lea ecx, [ebp - 0x50]
call fcn.00401ea0
jmp 0x421a7f
push str.tiff
lea ecx, [ebp - 0x50]
push ecx
call fcn.00402c70
add esp, 8
movzx edx, al
test edx, edx
je 0x421a7f
push str.image_tiff
lea ecx, [ebp - 0x50]
call fcn.00401ea0
push 0x429e7c
mov ecx, dword [ebp - 0x78]
call fcn.00421740
mov eax, dword [ebp - 0x78]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00421740
push 0x429e80
mov ecx, dword [ebp - 0x78]
call fcn.00421740
push str.Content_Disposition:_form_data__name_
mov ecx, dword [ebp - 0x78]
call fcn.00421740
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.00421740
push str.___filename_
mov ecx, dword [ebp - 0x78]
call fcn.00421740
lea ecx, [ebp - 0x6c]
call fcn.00401330
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00421740
push 0x429ebc
mov ecx, dword [ebp - 0x78]
call fcn.00421740
push str.Content_Type:
mov ecx, dword [ebp - 0x78]
call fcn.00421740
lea ecx, [ebp - 0x50]
call fcn.00401330
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00421740
push 0x429ed0
mov ecx, dword [ebp - 0x78]
call fcn.00421740
push 0x429ed4
mov ecx, dword [ebp - 0x78]
call fcn.00421740
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
mov ecx, dword [edx + 4]
sub ecx, dword [eax + 8]
sub ecx, 1
cmp ecx, dword [ebp - 0x34]
jae 0x421b55
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
mov ecx, dword [edx + 4]
sub ecx, dword [eax + 8]
sub ecx, 1
mov edx, dword [ebp - 0x34]
sub edx, ecx
push edx
mov ecx, dword [ebp - 0x78]
call fcn.004214f0
push 0
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x78]
add eax, dword [ecx + 8]
push eax
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x429ed8
mov ecx, dword [ebp - 0x78]
call fcn.00421740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004012d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004012d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404354
mov esp, ebp
pop ebp
ret 8