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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x5f6998]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, ecx
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], ebx
test eax, eax
je 0x43c7b3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
mov ecx, edi
call fcn.0043c6f0
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
mov edi, dword [edi + 4]
xor eax, eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x41c], edi
cmp edi, dword [eax + 8]
jae 0x43ca2e
lea ebx, [edi + 0x200]
mov dword [ebp - 0x414], ebx
mov eax, dword [ebx + 0x800]
xor esi, esi
dec eax
je 0x43c97e
dec eax
jne 0x43c9c5
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
mov dword [ebp - 0x418], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x42c], eax
add eax, 0x1801
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x400
lea ecx, [ebp - 0x407]
push edi
push ecx
mov esi, eax
mov byte [ebp - 0x408], 0
call fcn.00542dc0
mov edx, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x420]
add esp, 0xc
push edx
call fcn.0043c2f0
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x414]
push eax
push ecx
push edx
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:__s_r_n_r_n
push esi
call fcn.005467dd
mov eax, esi
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x43c8a3
sub eax, ecx
sar eax, 1
push 0
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x418]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c946
jmp 0x43c8e0
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x43c946
cmp edi, dword [ebp - 0x42c]
ja 0x43c946
push eax
mov eax, dword [ebp - 0x40c]
lea edx, [ebp - 0x408]
add eax, edi
push edx
add eax, esi
push eax
call fcn.00541a10
push 0x401
lea ecx, [ebp - 0x408]
push 0
push ecx
call fcn.00542dc0
add edi, dword [ebp - 0x418]
add esp, 0x18
push 0
lea edx, [ebp - 0x418]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c8e0
mov ecx, dword [ebp - 0x40c]
mov dx, word [0x58e138]
add ecx, edi
push ebx
mov word [ecx + esi], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40c]
mov ebx, dword [ebp - 0x414]
lea ecx, [eax + edi + 2]
mov edi, dword [ebp - 0x41c]
mov dword [ebp - 0x40c], ecx
jmp 0x43c9c5
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [ebp - 0x424]
push ebx
push edi
push edx
mov esi, eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push esi
call fcn.005467dd
mov eax, esi
add esp, 0x14
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c9b0
sub eax, edx
sar eax, 1
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x40c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x410]
push eax
push esi
push edx
call fcn.00541a10
mov eax, dword [ebp - 0x40c]
add dword [ebp - 0x410], eax
add esp, 0xc
test esi, esi
je 0x43c9fb
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x420]
add edi, 0xa04
add ebx, 0xa04
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x414], ebx
cmp edi, dword [ecx + 8]
jb 0x43c7f7
mov esi, dword [ebp - 0x428]
mov ebx, dword [ebp - 0x424]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x410]
mov eax, 0x2d2d
mov word [ecx + edx], ax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ca44
sub eax, edx
mov edx, dword [esi]
sar eax, 1
push eax
mov eax, dword [ebp - 0x410]
lea ecx, [edx + eax + 2]
push ebx
push ecx
call fcn.00541a10
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ca70
mov cx, word [0x594e6c]
sub eax, edx
mov edx, dword [esi]
mov esi, dword [ebp - 0x410]
sar eax, 1
add edx, eax
lea eax, [edx + esi + 2]
mov word [eax], cx
mov dl, byte [0x594e6e]
mov byte [eax + 2], dl
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43caa5
mov ecx, dword [ebp - 4]
sub eax, edx
sar eax, 1
pop edi
lea eax, [eax + esi + 5]
pop esi
xor ecx, ebp
pop ebx
call fcn.00542c3e
mov esp, ebp
pop ebp
ret 8