Function at 0x43af3c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
push 0x2008
lea ecx, [ebp - 8]
mov dword [eax], ebx
call fcn.00435c56
mov edi, dword [ebp - 8]
push 0x800
lea esi, [edi + 0x800]
push ebx
push esi
mov dword [ebp - 0xc], ebx
call fcn.0047fd70
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x800
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x43b170
mov eax, dword [edi + 0x1b4]
cmp eax, 0x46424246
movzx ecx, word [edi + 0x1fe]
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x20]
mov dword [ebp - 0x10], edi
mov byte [ebp - 1], bl
je 0x43b089
cmp eax, 0x534c5055
je 0x43b089
cmp eax, 0x5352424d
jne 0x43b170
cmp ecx, 0xaa55
jne 0x43b170
cmp edx, ebx
jne 0x43b170
mov edi, 0x200
push edi
push ebx
push esi
call fcn.0047fd70
push ebx
push ebx
push 0x4a00
push dword [ebp + 8]
call fcn.0043181b
add esp, 0x1c
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x43b170
cmp dword [esi + 0x1b4], 0x5352424d
movzx ecx, word [esi + 0x1fe]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
jne 0x43b170
cmp ecx, 0xaa55
jne 0x43b170
cmp edx, 0x25
jne 0x43b170
add eax, edx
cmp eax, dword [ebp - 0x10]
jne 0x43b170
movzx ax, byte [esi + 0x67]
cmp ax, bx
jne 0x43b05f
xor eax, eax
inc eax
mov ecx, dword [esi + 0x5c]
and dword [ebp - 0x18], 0
push 1
push ebx
movzx eax, ax
push ebx
push dword [esi + 0x60]
add ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.0047fe80
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
adc eax, edx
jmp 0x43b0e8
mov edi, 0x200
push edi
push ebx
push esi
mov byte [ebp - 1], 1
call fcn.0047fd70
push ebx
push ebx
push 0x8600
push dword [ebp + 8]
call fcn.0043181b
add esp, 0x1c
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x43b170
mov al, byte [esi + 0x1f8]
and al, 0xc0
cmp al, 0x40
jne 0x43b170
mov eax, dword [esi + 0x1f0]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1f4]
adc eax, ebx
push edi
push ebx
push esi
mov dword [ebp - 0x10], eax
call fcn.0047fd70
add esp, 0xc
push ebx
push ebx
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0047fe80
push edx
push eax
push dword [ebp + 8]
call fcn.0043181b
add esp, 0x10
jmp 0x43b15c
push 0xa
lea eax, [esi + 3]
push 0x49b2b0
push eax
call fcn.004309b4
add esp, 0xc
test eax, eax
je 0x43b180
push 0x41
pop eax
cmp dword [ebp - 0x14], eax
jne 0x43b137
cmp dword [ebp - 0x10], ebx
je 0x43b170
cmp byte [ebp - 1], bl
jne 0x43b170
push edi
push ebx
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
call fcn.0047fd70
push ebx
push ebx
push 0x8200
push dword [ebp + 8]
call fcn.0043181b
add esp, 0x1c
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x43b113
lea ecx, [ebp - 8]
call fcn.0043092f
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x43b1d7
mov ecx, dword [esi + 0x68]
xor eax, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x28]
or eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
or eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x2c]
and eax, 0xffffffc0
shl eax, 9
cmp dword [ebp + 0x10], ebx
mov dword [ecx], eax
je 0x43b1c2
push ebx
push edi
push dword [esi + 0x78]
push dword [esi + 0x74]
call fcn.0047fe80
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea ecx, [ebp - 8]
call fcn.0043092f
push ebx
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0047fe80
pop edi
pop esi
pop ebx
leave
ret