Function at 0x4b9842
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + eax*4 + 0xe95e8], 0
jne 0x4b9dc6
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x4b9878
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0xff
jge 0x4b98d4
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov edx, dword [ebp - 0x50]
movsx eax, byte [edx + ecx + 0x435e8]
cmp eax, 0x2e
jne 0x4b98d2
push 0x5c4508
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x20]
add edx, ecx
mov eax, dword [ebp - 0x50]
lea ecx, [eax + edx + 0x435e8]
push ecx
call fcn.00599850
add esp, 8
test eax, eax
jne 0x4b98d2
mov dword [ebp - 0x24], 1
jmp 0x4b98d4
jmp 0x4b986f
mov dword [ebp - 0x14], 0
push 0
push 0x8000
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x50]
lea ecx, [eax + edx + 0x435e8]
push ecx
call fcn.0059a3c7
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4b990e
xor eax, eax
jmp 0x4b9dc8
mov byte [ebp - 0xc], 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0059a0ff
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [0x5d4c08]
mov ecx, dword [eax + 0x2a514]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], 0x12
mov dword [ebp - 0x1c], 0xff000000
cmp dword [ebp - 0x24], 0
jne 0x4b9a49
mov edx, dword [ebp - 0x10]
sub edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 0x12
push eax
call fcn.0059998a
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
push 4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0059a189
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0059a189
add esp, 0xc
push 0x12
mov ecx, dword [ebp - 0x50]
add ecx, 0x304
push ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x10]
push edx
call fcn.00599ae0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0059a01f
add esp, 4
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x50]
movsx eax, byte [edx + ecx + 0x436e7]
cmp eax, 0x41
jne 0x4b99fe
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a390], 1
je 0x4b99ec
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a510], 0x10
jne 0x4b99f5
mov dword [ebp - 0x28], 0x1a
jmp 0x4b99fc
mov dword [ebp - 0x28], 0
jmp 0x4b9a44
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x50]
movsx edx, byte [ecx + eax + 0x436e7]
cmp edx, 0x61
jne 0x4b9a44
mov eax, dword [0x5d4c08]
cmp dword [eax + 0x2a390], 1
je 0x4b9a34
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a510], 0x10
jne 0x4b9a3d
mov dword [ebp - 0x28], 0x19
jmp 0x4b9a44
mov dword [ebp - 0x28], 0
jmp 0x4b9c4f
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0059998a
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
push 1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0059a189
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0059a189
add esp, 0xc
push 3
mov ecx, dword [ebp - 0x50]
add ecx, 0x317
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00599ae0
add esp, 0xc
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x54]
cmp ecx, 0x32
jne 0x4b9ae0
push 0x5c4510
lea edx, [ebp - 0x38]
push edx
call fcn.00599938
add esp, 8
push 4
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x54
push ecx
call fcn.00599ae0
add esp, 0xc
jmp 0x4b9b06
push 0x5c4518
lea edx, [ebp - 0x38]
push edx
call fcn.00599938
add esp, 8
push 4
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x54
push ecx
call fcn.00599ae0
add esp, 0xc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0059a01f
add esp, 4
mov eax, dword [0x5d4c08]
cmp dword [eax + 0x2a5c0], 1
jne 0x4b9b4b
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a5c4], 1
jne 0x4b9b4b
cmp dword [0x5be8bc], 1
jne 0x4b9b4b
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
jmp 0x4b9c4f
mov dword [ebp - 0x1c], 0
mov edx, dword [0x5d4c08]
mov eax, dword [edx + 0x2a514]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x50]
movsx eax, byte [edx + ecx + 0x436e7]
cmp eax, 0x41
je 0x4b9b93
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x50]
movsx eax, byte [edx + ecx + 0x436e7]
cmp eax, 0x43
jne 0x4b9bc3
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a390], 1
je 0x4b9bb1
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a510], 0x10
jne 0x4b9bba
mov dword [ebp - 0x28], 0x1a
jmp 0x4b9bc1
mov dword [ebp - 0x28], 0x15
jmp 0x4b9c09
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x50]
movsx edx, byte [ecx + eax + 0x436e7]
cmp edx, 0x61
jne 0x4b9c09
mov eax, dword [0x5d4c08]
cmp dword [eax + 0x2a390], 1
je 0x4b9bf9
mov ecx, dword [0x5d4c08]
cmp dword [ecx + 0x2a510], 0x10
jne 0x4b9c02
mov dword [ebp - 0x28], 0x19
jmp 0x4b9c09
mov dword [ebp - 0x28], 0x15
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x50]
movsx ecx, byte [eax + edx + 0x436e7]
cmp ecx, 0x4e
jne 0x4b9c4f
mov edx, dword [0x5d4c08]
cmp dword [edx + 0x2a390], 1
je 0x4b9c3f
mov eax, dword [0x5d4c08]
cmp dword [eax + 0x2a510], 0x10
jne 0x4b9c48
mov dword [ebp - 0x28], 0x18
jmp 0x4b9c4f
mov dword [ebp - 0x28], 0x16
mov dword [ebp - 0x18], 0
cmp dword [0x5be8b8], 0x32
jl 0x4b9c68
mov dword [ebp - 0x18], 1
jmp 0x4b9cc3
cmp dword [0x5be8b8], 0x32
jge 0x4b9c89
cmp dword [0x5be8b8], 0x28
jl 0x4b9c89
cmp dword [ebp + 8], 0xb
jle 0x4b9c87
mov dword [ebp - 0x18], 1
jmp 0x4b9cc3
cmp dword [0x5be8b8], 0x28
jge 0x4b9cb3
cmp dword [0x5be8b8], 0x1e
jl 0x4b9cb3
cmp dword [ebp + 8], 0x190
jge 0x4b9cb1
cmp dword [ebp + 8], 0xb
jle 0x4b9cb1
mov dword [ebp - 0x18], 1
jmp 0x4b9cc3
cmp dword [0x5be8b8], 0x1e
jge 0x4b9cc3
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
jne 0x4b9d3e
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x50]
lea eax, [edx + ecx*4 + 0xe95e8]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push 1
push 1
mov edx, dword [ebp - 0x28]
push edx
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [0x5d4c08]
mov eax, dword [edx + 0x2a3e4]
push eax
call fcn.0056b77b
test eax, eax
jge 0x4b9d3c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx*4 + 0xe95e8], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.005992fa
add esp, 4
xor eax, eax
jmp 0x4b9dc8
jmp 0x4b9dad
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
lea ecx, [eax + edx*4 + 0xe95e8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 5
push 5
push 1
mov eax, dword [ebp - 0x28]
push eax
push 0
push 4
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x5d4c08]
mov ecx, dword [eax + 0x2a3e4]
push ecx
call fcn.0056b77b
test eax, eax
jge 0x4b9dad
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
mov dword [eax + edx*4 + 0xe95e8], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.005992fa
add esp, 4
xor eax, eax
jmp 0x4b9dc8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.005992fa
add esp, 4
mov eax, 1
jmp 0x4b9dc8
xor eax, eax
mov esp, ebp
pop ebp
ret 4