Function at 0x43ab10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ch, byte [eax + esi + 0x27]
xor edx, edx
mov dl, byte [eax + esi + 0x25]
xor ebx, ebx
mov bh, byte [eax + esi + 0x21]
xor ebp, ebp
push edi
mov cl, byte [eax + esi + 0x26]
mov dword [esp + 0x1c], ebp
mov bl, byte [eax + esi + 0x20]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + esi + 0x24]
shl ecx, 8
or ecx, edx
cmp bx, 1
mov dword [esp + 0x28], ecx
jb 0x43adcb
xor ecx, ecx
mov ch, byte [eax + 0x37]
xor edx, edx
mov dl, byte [eax + 0x35]
push 0x680b3c
mov cl, byte [eax + 0x36]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 0x34]
shl ecx, 8
or ecx, edx
lea eax, [ecx + eax - 4]
push eax
call sub.MSVCR71.dll_fopen
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x43adcb
push 2
push ebp
push esi
call sub.MSVCR71.dll_fseek
push esi
call sub.MSVCR71.dll_ftell
push ebp
push ebp
push esi
mov dword [esp + 0x4c], eax
call sub.MSVCR71.dll_fseek
mov edi, 1
and ebx, 0xffff
add esp, 0x1c
cmp ebx, edi
jb 0x43adc2
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x28]
push 0
add ecx, ebp
push ecx
push esi
mov dword [esp + 0x20], 0
call sub.MSVCR71.dll_fseek
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
lea eax, [edx + ebp + 4]
cmp eax, ecx
push esi
ja 0x43adc3
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call sub.MSVCR71.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x43adc2
mov eax, dword [esp + 0x1f]
mov edx, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1d]
and eax, 0xff
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x1c]
shl eax, 8
and ecx, 0xff
or eax, ecx
mov ecx, dword [esp + 0x2c]
shl eax, 8
and edx, 0xff
or eax, edx
and ecx, 0xffff
cmp edi, ecx
mov dword [esp + 0x1c], eax
je 0x43ac72
and eax, 0x7fffffff
inc edi
cmp edi, ebx
lea ebp, [eax + ebp + 4]
ja 0x43adc2
jmp 0x43abca
test eax, 0x80000000
je 0x43acdf
push esi
mov edi, 1
push edi
lea edx, [esp + 0x1c]
and eax, 0x7fffffff
push 4
push edx
mov dword [esp + 0x2c], eax
call sub.MSVCR71.dll_fread
add esp, 0x10
cmp eax, edi
jne 0x43adc2
mov ecx, dword [esp + 0x17]
mov eax, dword [esp + 0x16]
mov edx, dword [esp + 0x15]
and ecx, 0xff
shl ecx, 8
and eax, 0xff
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
and edx, 0xff
or ecx, edx
and eax, 0xff
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
jmp 0x43ace9
mov edi, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x34]
test edx, edx
jne 0x43ad06
push esi
call sub.MSVCR71.dll_fclose
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x28]
add ebx, ebp
mov ebp, dword [esp + 0x30]
add ebx, eax
cmp ebx, ebp
ja 0x43adc2
test edi, edi
je 0x43ad9b
push esi
push 1
mov ebx, ecx
lea ecx, [esp + 0x30]
push 2
push ecx
lea ebp, [eax - 6]
mov dword [esp + 0x38], 0
call sub.MSVCR71.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x43adad
mov eax, dword [esp + 0x28]
xor edx, edx
mov dh, ah
mov dl, al
lea eax, [ebp + 1]
push eax
mov dword [esp + 0x2c], edx
call sub.MSVCR71.dll_malloc
add esp, 4
mov edi, eax
test edi, edi
push esi
je 0x43adae
push 1
push ebp
push edi
call sub.MSVCR71.dll_fread
add esp, 0x10
cmp eax, 1
push esi
jne 0x43adae
call sub.MSVCR71.dll_fclose
mov ecx, dword [esp + 0x38]
push ebx
push ecx
push edi
call fcn.0043ade0
push edi
call sub.MSVCR71.dll_free
mov eax, dword [esp + 0x28]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push esi
push 1
push ecx
push edx
call sub.MSVCR71.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x43adc2
push esi
call sub.MSVCR71.dll_fclose
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push esi
call sub.MSVCR71.dll_fclose
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret