Function at 0x433c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5000
call fcn.00435010
mov eax, dword [0x452f2c]
push ebx
push esi
push edi
mov cl, byte [eax + 0x32f]
test cl, cl
je 0x433d8d
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__getw]
push eax
call edi
mov ecx, dword [0x452f2c]
mov esi, eax
mov edx, dword [ecx]
push edx
call edi
mov ecx, dword [0x452f2c]
mov dword [ebp + 8], eax
mov edx, dword [ecx]
push edx
push eax
lea eax, [ebp - 0x5000]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebp + 8]
add esp, 0x18
cmp eax, ecx
je 0x433c7d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
lea edx, [ebp - 0x2800]
push ecx
lea eax, [ebp - 0x5000]
push edx
push eax
push esi
call fcn.00431a60
mov ecx, dword [0x455b38]
mov dx, word [ebp - 0x2800]
add esp, 0x10
mov ebx, 6
mov word [ecx + 0x1e631], dx
mov eax, dword [0x455b38]
mov ecx, dword [ebp - 0x27fe]
mov dword [eax + 0x1e633], ecx
mov eax, dword [0x455b38]
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp word [eax + 0x28], cx
jbe 0x433d36
lea edx, [ebp - 0x27fa]
mov eax, dword [eax + 0x1e637]
mov esi, ecx
shl esi, 8
add esi, ecx
mov cx, word [edx]
add edx, 2
add ebx, 2
mov word [eax + esi*2], cx
mov eax, dword [ebp + 8]
mov ecx, eax
mov esi, edx
shl ecx, 8
add ecx, eax
mov eax, dword [0x455b38]
add ebx, 0x200
add edx, 0x200
mov eax, dword [eax + 0x1e637]
lea edi, [eax + ecx*2 + 2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov eax, dword [0x455b38]
inc ecx
xor esi, esi
mov dword [ebp + 8], ecx
mov si, word [eax + 0x28]
cmp ecx, esi
jb 0x433cd8
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebp + 8], ecx
mov dx, word [eax + 0x2a]
mov si, word [eax + 0x28]
imul edx, esi
test edx, edx
jbe 0x433e89
lea edx, [ebp + ebx - 0x2800]
mov eax, dword [eax + 0x1e63b]
mov si, word [edx]
add edx, 2
xor edi, edi
mov word [eax + ecx*2], si
mov ecx, dword [ebp + 8]
mov eax, dword [0x455b38]
inc ecx
xor esi, esi
mov dword [ebp + 8], ecx
mov si, word [eax + 0x2a]
mov di, word [eax + 0x28]
imul esi, edi
cmp ecx, esi
jb 0x433d59
jmp 0x433e89
mov esi, dword [ebp + 8]
mov ecx, dword [0x455b38]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 2
add ecx, 0x1e631
push 1
push ecx
call edi
add esp, 0x10
cmp eax, 2
je 0x433dbe
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x455b38]
push esi
push 4
add edx, 0x1e633
push 1
push edx
call edi
add esp, 0x10
cmp eax, 4
je 0x433de6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x455b38]
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp word [eax + 0x28], cx
jbe 0x433e35
mov eax, dword [eax + 0x1e637]
mov edx, ecx
shl edx, 8
add edx, ecx
push esi
push 0x202
push 1
lea ecx, [eax + edx*2]
push ecx
call edi
add esp, 0x10
cmp eax, 0x202
jne 0x433c71
mov ecx, dword [ebp + 8]
mov eax, dword [0x455b38]
inc ecx
xor edx, edx
mov dword [ebp + 8], ecx
mov dx, word [eax + 0x28]
cmp ecx, edx
jb 0x433df6
xor ecx, ecx
xor edx, edx
xor ebx, ebx
mov dword [ebp + 8], ecx
mov dx, word [eax + 0x2a]
mov bx, word [eax + 0x28]
imul edx, ebx
test edx, edx
jbe 0x433e89
mov eax, dword [eax + 0x1e63b]
push esi
push 2
push 1
lea ecx, [eax + ecx*2]
push ecx
call edi
add esp, 0x10
cmp eax, 2
jne 0x433c71
mov ecx, dword [ebp + 8]
mov eax, dword [0x455b38]
inc ecx
xor edx, edx
xor ebx, ebx
mov dword [ebp + 8], ecx
mov dx, word [eax + 0x2a]
mov bx, word [eax + 0x28]
imul edx, ebx
cmp ecx, edx
jb 0x433e4d
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 0x2a]
mov dx, word [eax + 0x28]
imul ecx, edx
xor edx, edx
pop edi
mov dx, word [eax + 0x1e631]
xor eax, eax
cmp edx, ecx
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret