Function at 0x43bf70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0043a920
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x43bf96
jmp 0x43c413
call fcn.0043a8c0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
and edx, 1
jne 0x43bfc8
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x2b4]
cmp edx, dword [ecx + 0x220]
jl 0x43bff8
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
shr ecx, 2
and ecx, 1
je 0x43c039
mov edx, dword [ebp - 4]
push edx
call fcn.0043cd30
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43c039
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2b8], 0
je 0x43c07a
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2b8], 2
je 0x43c07a
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b0]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2b8], 2
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x2aa]
test eax, eax
je 0x43c2d5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
push 4
push 1
mov eax, dword [ebp - 4]
add eax, 0x2bc
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x43c0ca
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffe7
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
shr edx, 1
and edx, 1
je 0x43c136
mov eax, dword [ebp - 4]
add eax, 0x2be
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 0x11], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x11]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 0x2bc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp - 0x1d]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x2bc]
mov word [ebp - 0xc], cx
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x314]
cmp edx, ecx
jle 0x43c1b9
movzx edx, word [ebp - 0xc]
add edx, 4
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x43c18c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffd7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c4]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x2c4], eax
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0xc]
mov word [ecx + 0x314], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
movzx edx, word [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c4]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
movzx edx, word [ebp - 0xc]
cmp eax, edx
je 0x43c1fe
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x2bc]
mov word [eax + 0x2c2], dx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx + 0x2c0], ax
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b0]
lea edx, [edx + ecx + 4]
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b0], edx
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0xc]
mov word [ecx + 0x31c], dx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c4]
mov dword [eax + 0x2c8], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x2ab]
test ecx, ecx
je 0x43c2d0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d0
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov edx, dword [ebp - 4]
add edx, 0x2d0
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
mov ecx, dword [ebp - 4]
mov word [ecx + 0x316], ax
mov edx, dword [ebp - 4]
add edx, 0x2d0
mov eax, dword [ebp - 4]
mov dword [eax + 0x310], edx
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x316]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c8]
lea edx, [edx + ecx + 1]
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c8], edx
jmp 0x43c3d0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2b4], 0xffffffff
jne 0x43c33f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
push 0x80
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c4]
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 0x80
je 0x43c325
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b0]
add ecx, 0x80
mov edx, dword [ebp - 4]
mov dword [edx + 0x2b0], ecx
jmp 0x43c3ac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x31c]
push eax
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c4]
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x31c]
cmp eax, edx
je 0x43c390
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffe7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0043a8e0
add esp, 4
jmp 0x43c413
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x31c]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x2b0]
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b0], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
mov dword [ecx + 0x2c8], eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x310], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b8], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x318], 0x58
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x31a], dx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2b4]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b4], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret 8