Function at 0x433aa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov ecx, dword [eax + 0x84]
mov eax, dword [eax + 0x8c]
lea edx, [ecx + ecx*4]
push edi
shl edx, 4
mov ecx, dword [edx + eax + 0x30]
lea edi, [esi + 8]
push 0x2e
push edi
lea ebp, [esi + 0xae]
mov dword [esi + 0x88], ecx
call fcn.00438380
add esp, 4
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
jne 0x433b1b
mov eax, edi
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x433b00
mov edx, dword [str..bmp]
mov dword [eax], edx
mov cl, byte [0x538fa0]
mov byte [eax + 4], cl
push 0x525ca8
push edi
call fcn.00522f10
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x433b44
call fcn.005225b0
pop edi
pop esi
pop ebp
mov dword [eax], 0x28e
xor eax, eax
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.MSVCR80.dll_fread]
push ebx
push 0xe
lea eax, [esi + 0xa0]
push 1
push eax
call edi
add esp, 0x10
cmp eax, 0xe
jne 0x433d64
movzx eax, byte [esi + 0xa0]
sub eax, 0x42
jne 0x433b7c
movzx eax, byte [esi + 0xa1]
sub eax, 0x4d
je 0x433b8a
test eax, eax
mov ecx, 1
jg 0x433b8c
or ecx, 0xffffffff
jmp 0x433b8c
xor ecx, ecx
test ecx, ecx
jne 0x433d64
push ebx
push 0x68
push 1
push ebp
call edi
add esp, 0x10
cmp eax, 0x68
jne 0x433d64
cmp dword [ebp + 0x10], 0
jne 0x433d64
mov dx, word [ebp + 4]
test dx, dx
mov word [esi + 0x96], dx
movzx ecx, word [ebp + 8]
mov word [esi + 0x94], cx
je 0x433d64
test cx, cx
je 0x433d64
mov eax, dword [esi + 0xa2]
test eax, eax
jne 0x433bf7
movzx ecx, word [ebp + 0xe]
mov eax, 8
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp + 4]
jmp 0x433c00
sub eax, dword [esi + 0xaa]
movzx ecx, cx
xor edx, edx
div ecx
movzx edx, word [esi + 0x94]
mov dword [esi + 0x9c], eax
movzx ecx, word [ebp + 0xc]
add eax, 4
imul eax, edx
add eax, 4
imul eax, ecx
test eax, eax
je 0x433d6f
push eax
call fcn.005228c0
add esp, 4
test eax, eax
mov dword [esi + 0x8c], eax
je 0x433d6f
mov dword [esi + 0x90], eax
movzx edx, word [ebp + 0xc]
xor ecx, ecx
test edx, edx
lea eax, [eax + edx*4]
mov dword [esp + 0x1c], ecx
jle 0x433cbf
jmp 0x433c60
mov edx, dword [esi + 0x90]
mov dword [edx + ecx*4], eax
movzx edx, word [esi + 0x94]
xor ecx, ecx
test edx, edx
lea eax, [eax + edx*4]
mov dword [esp + 0x10], ecx
jle 0x433cac
lea ecx, [ecx]
mov edx, dword [esi + 0x90]
mov edi, dword [esp + 0x1c]
mov edx, dword [edx + edi*4]
mov dword [edx + ecx*4], eax
mov ecx, dword [esp + 0x10]
movzx edx, word [esi + 0x94]
add eax, dword [esi + 0x9c]
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x433c80
mov ecx, dword [esp + 0x1c]
movzx edx, word [ebp + 0xc]
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jl 0x433c60
mov eax, dword [esi + 0xaa]
xor edi, edi
push edi
push eax
push ebx
call dword [sym.imp.MSVCR80.dll_fseek]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov edi, dword [sym.imp.MSVCR80.dll_getc]
add esp, 0xc
push ebx
call edi
add esp, 4
cmp eax, 0xffffffff
je 0x433d3d
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x90]
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx], al
movzx eax, word [esi + 0xba]
movzx edx, word [esi + 0x94]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x9c]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00436d60
add esp, 0x18
test eax, eax
je 0x433ce5
push ebx
call fcn.00522fc0
push esi
call fcn.004338e0
mov edi, eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.00522970
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
call fcn.005225b0
mov dword [eax], 0x291
push ebx
call fcn.00522fc0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret