Function at 0x4b8711
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0xc], 0
jge 0x4b8726
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
cmp dword [edx + ecx*4 + 0xe85e8], 0
jne 0x4b8b91
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x4b8753
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xff
jge 0x4b87af
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x18]
add edx, ecx
mov eax, dword [ebp - 0x44]
movsx ecx, byte [eax + edx + 0x15e8]
cmp ecx, 0x2e
jne 0x4b87ad
push 0x5c4380
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x18]
add eax, edx
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + eax + 0x15e8]
push edx
call fcn.00599850
add esp, 8
test eax, eax
jne 0x4b87ad
mov dword [ebp - 0x1c], 1
jmp 0x4b87af
jmp 0x4b874a
mov dword [ebp - 0x10], 0
push 0
push 0x8000
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + eax + 0x15e8]
push edx
call fcn.0059a3c7
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4b87e9
xor eax, eax
jmp 0x4b8b93
mov eax, dword [ebp - 0x24]
push eax
call fcn.0059a0ff
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [0x5d4c08]
mov edx, dword [ecx + 0x2a514]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0x12
mov dword [ebp - 0x14], 0xff000000
cmp dword [ebp - 0x1c], 0
jne 0x4b8921
mov eax, dword [ebp - 0xc]
sub eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x12
push ecx
call fcn.0059998a
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], edx
push 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0059a189
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0059a189
add esp, 0xc
push 0x12
mov edx, dword [ebp - 0x44]
add edx, 0x304
push edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
push eax
call fcn.00599ae0
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0059a01f
add esp, 4
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x44]
movsx ecx, byte [eax + edx + 0x16e7]
cmp ecx, 0x41
jne 0x4b88d5
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a390], 1
je 0x4b88c3
mov eax, dword [0x5d4c08]
cmp dword [eax + 0x2a510], 0x10
jne 0x4b88cc
mov dword [ebp - 0x20], 0x1a
jmp 0x4b88d3
mov dword [ebp - 0x20], 0
jmp 0x4b891c
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x44]
movsx eax, byte [edx + ecx + 0x16e7]
cmp eax, 0x61
jne 0x4b891c
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a390], 1
je 0x4b890c
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a510], 0x10
jne 0x4b8915
mov dword [ebp - 0x20], 0x19
jmp 0x4b891c
mov dword [ebp - 0x20], 0
jmp 0x4b8af8
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0059998a
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edx
push 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0059a189
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0059a189
add esp, 0xc
push 3
mov edx, dword [ebp - 0x44]
add edx, 0x317
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00599ae0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + 0x54]
cmp edx, 0x32
jne 0x4b89b8
push 0x5c4388
lea eax, [ebp - 0x30]
push eax
call fcn.00599938
add esp, 8
push 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x54
push edx
call fcn.00599ae0
add esp, 0xc
jmp 0x4b89de
push 0x5c4390
lea eax, [ebp - 0x30]
push eax
call fcn.00599938
add esp, 8
push 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x54
push edx
call fcn.00599ae0
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
call fcn.0059a01f
add esp, 4
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a5c0], 1
jne 0x4b8a24
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a5c4], 1
jne 0x4b8a24
cmp dword [0x5be8bc], 1
jne 0x4b8a24
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
jmp 0x4b8af8
mov dword [ebp - 0x14], 0
mov eax, dword [0x5d4c08]
mov ecx, dword [eax + 0x2a514]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x44]
movsx ecx, byte [eax + edx + 0x16e7]
cmp ecx, 0x41
je 0x4b8a84
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x44]
movsx ecx, byte [eax + edx + 0x16e7]
cmp ecx, 0x61
je 0x4b8a84
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x44]
movsx ecx, byte [eax + edx + 0x16e7]
cmp ecx, 0x43
jne 0x4b8ab1
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a390], 1
je 0x4b8aa1
mov eax, dword [0x5d4c08]
cmp dword [eax + 0x2a510], 0x10
jne 0x4b8aaa
mov dword [ebp - 0x20], 0x1a
jmp 0x4b8ab1
mov dword [ebp - 0x20], 0x15
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x44]
movsx eax, byte [edx + ecx + 0x16e7]
cmp eax, 0x4e
jne 0x4b8af8
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a390], 1
je 0x4b8ae8
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a510], 0x10
jne 0x4b8af1
mov dword [ebp - 0x20], 0x18
jmp 0x4b8af8
mov dword [ebp - 0x20], 0x16
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + eax*4 + 0xe85e8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push 1
push 1
push 1
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x5d4c08]
mov edx, dword [ecx + 0x2a3e4]
push edx
call fcn.0056b77b
test eax, eax
jge 0x4b8b78
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + eax*4 + 0xe85e8], 0
je 0x4b8b62
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
mov dword [eax + edx*4 + 0xe85e8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.005992fa
add esp, 4
xor eax, eax
jmp 0x4b8b93
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.005992fa
add esp, 4
mov eax, 1
jmp 0x4b8b93
xor eax, eax
mov esp, ebp
pop ebp
ret 8