Function at 0x1005b9a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x101ce00c]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x24c]
push ebx
push ebp
push edi
mov dword [esp + 0x18], eax
mov ebx, ebx
xor eax, eax
mov dword [esp + 0x1c], eax
mov bh, bh
push eax
pop eax
mov dword [esp + 0xc], eax
mov dh, dh
mov esi, esi
test bl, bl
push ebx
pop ebx
push 0x1ff
push eax
lea ecx, [esp + 0x55]
push ecx
mov byte [esp + 0x58], al
call fcn.10118770
add esp, 0xc
mov ch, ch
mov ebp, dword [esp + 0x254]
mov edx, dword [esi + 0x220]
add ebp, ebp
add ebp, ebp
mov ebx, dword [edx + ebp]
call fcn.10053740
push ebx
pop ebx
mov edi, dword [esi + 0x220]
add edi, ebp
xor ebx, ebx
cmp dword [edi], ebx
jne 0x1005ba48
push 0xe273c
call fcn.10117b2c
add esp, 4
mov dword [edi], eax
mov dl, dl
mov edi, dword [edi]
cmp edi, ebx
je 0x1005bfb0
push 0xe273c
push ebx
push edi
call fcn.10118770
add esp, 0xc
mov esi, esi
cmp dword [esp + 0x25c], ebx
jne 0x1005bc93
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
call fcn.100597b0
add esp, 0xc
mov edi, edi
mov byte [esp + 0x10], 0x72
mov byte [esp + 0x11], 0x62
mov byte [esp + 0x12], bl
mov ah, ah
push 0x20
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.101191b0
add esp, 0xc
mov edi, eax
test cl, cl
cmp edi, ebx
jne 0x1005bb09
mov al, 0xbf
mov byte [esp + 0x24], 0xb4
mov byte [esp + 0x25], 0xf2
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0xaa
mov byte [esp + 0x28], 0xd7
mov byte [esp + 0x29], 0xd6
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0xe2
mov byte [esp + 0x2c], 0x3c
mov byte [esp + 0x2d], 0x25
mov byte [esp + 0x2e], 0x73
mov byte [esp + 0x2f], 0x3e
mov byte [esp + 0x30], 0xca
mov byte [esp + 0x31], 0xa7
mov byte [esp + 0x32], 0xb0
mov byte [esp + 0x33], 0xdc
mov byte [esp + 0x34], bl
push eax
pop eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call fcn.100531e0
add esp, 0xc
test eax, 0x75ec
jmp 0x1005bfb0
push 2
push ebx
push edi
call fcn.1011912b
add esp, 0xc
mov esi, esi
push edi
call fcn.10119036
add esp, 4
mov dword [esp + 0xc], eax
mov cl, cl
push ebx
push ebx
push edi
call fcn.1011912b
add esp, 0xc
test dl, dl
mov eax, dword [esp + 0xc]
add eax, 1
push eax
call fcn.10117b2c
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test edx, edx
cmp ebp, ebx
jne 0x1005bb9b
mov byte [esp + 0x24], 0xc4
mov byte [esp + 0x25], 0xda
mov byte [esp + 0x26], 0xb4
mov byte [esp + 0x27], 0xe6
mov byte [esp + 0x28], 0xb2
mov byte [esp + 0x29], 0xbb
mov byte [esp + 0x2a], 0xd7
mov byte [esp + 0x2b], 0xe3
mov byte [esp + 0x2c], bl
test eax, 0x7337
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.100531e0
add esp, 8
mov edi, edi
push edi
call fcn.10118b6b
add esp, 4
test ecx, ecx
mov edx, dword [esp + 0xc]
push edi
push edx
push 1
push ebp
call fcn.10118e83
add esp, 0x10
test eax, 0x5ec8
push edi
call fcn.10118b6b
add esp, 4
test edx, edx
mov eax, dword [esp + 0xc]
mov byte [eax + ebp], bl
test edx, edx
mov ecx, dword [ebp]
test ch, ch
mov eax, dword [esp + 0xc]
cmp eax, 8
jl 0x1005bc88
cmp ecx, 0x4d444d44
jne 0x1005bc88
lea ecx, [esi + 0x2604]
push ecx
push eax
push ebp
call fcn.10057c10
add esp, 0xc
mov dword [esp + 0xc], eax
test bh, bh
cmp dword [esp + 0xc], ebx
jne 0x1005bc7a
mov al, 0xdc
mov cl, 0xc3
mov dl, 0xe2
mov byte [esp + 0x24], 0xbc
mov byte [esp + 0x25], 0xd3
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], al
mov byte [esp + 0x28], 0xd7
mov byte [esp + 0x29], 0xd6
mov byte [esp + 0x2a], 0xbf
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2c], 0xbd
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], 0xca
mov byte [esp + 0x31], 0xa7
mov byte [esp + 0x32], 0xb0
mov byte [esp + 0x33], al
mov byte [esp + 0x34], 0x21
mov byte [esp + 0x35], bl
mov ebp, ebp
lea edx, [esp + 0x24]
push edx
push esi
call fcn.100531e0
add esp, 8
test eax, eax
push ebp
call fcn.10117bef
add esp, 4
test dl, dl
jmp 0x1005bfb0
add ebp, 8
mov dword [esp + 0x18], ebp
test ch, ch
jmp 0x1005bd77
mov dword [esp + 0x18], ebp
test dl, dl
jmp 0x1005bd77
mov dword [esp + 0x14], ebx
test ecx, ecx
mov byte [esp + 0x24], 0x25
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x2c
mov byte [esp + 0x27], 0x25
mov byte [esp + 0x28], 0x64
mov byte [esp + 0x29], bl
mov ebx, ebx
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.1011a25d
add esp, 0x10
push edx
pop edx
mov ecx, dword [esp + 0x14]
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1005bd6d
mov cl, 0xd6
mov al, 0xb5
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], 0xb8
mov byte [esp + 0x3a], 0xd5
mov byte [esp + 0x3b], 0xeb
mov byte [esp + 0x3c], 0x3a
mov byte [esp + 0x3d], 0x25
mov byte [esp + 0x3e], 0x64
mov byte [esp + 0x3f], 0xca
mov byte [esp + 0x40], 0xc7
mov byte [esp + 0x41], 0xce
mov byte [esp + 0x42], 0xde
mov byte [esp + 0x43], 0xd0
mov byte [esp + 0x44], 0xa7
mov byte [esp + 0x45], al
mov byte [esp + 0x46], 0xc4
mov byte [esp + 0x47], al
mov byte [esp + 0x48], 0xd8
mov byte [esp + 0x49], cl
mov byte [esp + 0x4a], 0xb7
mov byte [esp + 0x4b], bl
test eax, 0x482f
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.100531e0
add esp, 0xc
test ebx, ebx
jmp 0x1005bfb0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
test ebx, ebx
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
call fcn.100537e0
mov dword [esp + 0x20], eax
test eax, 0x26f4
test eax, eax
jne 0x1005bdf2
mov al, 0xbf
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0xd5
mov byte [esp + 0x26], 0xb5
mov byte [esp + 0x27], 0xc4
mov byte [esp + 0x28], 0xd7
mov byte [esp + 0x29], 0xd6
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0xe2
mov byte [esp + 0x2c], 0
test bl, bl
lea edx, [esp + 0x24]
push edx
push esi
call fcn.100531e0
add esp, 8
test cl, cl
cmp dword [esp + 0x25c], 0
jne 0x1005bfb0
mov eax, dword [esp + 0x1c]
push eax
call fcn.10117bef
add esp, 4
test eax, eax
jmp 0x1005bfb0
cmp eax, 0x59d8
jl 0x1005be5a
mov byte [esp + 0x24], 0xd7
mov byte [esp + 0x25], 0xd6
mov byte [esp + 0x26], 0xbf
mov byte [esp + 0x27], 0xe2
mov byte [esp + 0x28], 0xcc
mov byte [esp + 0x29], 0xab
mov byte [esp + 0x2a], 0xb4
mov byte [esp + 0x2b], 0xf3
mov byte [esp + 0x2c], 0
mov ah, ah
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.100531e0
add esp, 8
mov ah, ah
cmp dword [esp + 0x25c], 0
jne 0x1005bfb0
mov edx, dword [esp + 0x1c]
push edx
call fcn.10117bef
add esp, 4
mov cl, cl
jmp 0x1005bfb0
lea ebp, [eax*4]
push ebp
call fcn.10117b2c
add esp, 4
mov edi, eax
mov cl, cl
push ebp
call fcn.10117b2c
add esp, 4
mov ebx, eax
test bh, bh
test edi, edi
je 0x1005bf3a
test ebx, ebx
je 0x1005bf3a
push ebp
push 0
push edi
call fcn.10118770
add esp, 0xc
push ecx
pop ecx
push ebp
push 0
push ebx
call fcn.10118770
add esp, 0xc
xchg ebx, eax
xchg ebx, eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push edi
push eax
mov ecx, ebx
call fcn.10053820
add esp, 8
mov dl, dl
mov ebp, dword [esp + 0x254]
mov ecx, dword [esi + 0x220]
mov edx, dword [ecx + ebp*4]
mov eax, dword [esp + 0x18]
push ebp
push edi
push edx
push eax
mov eax, dword [esp + 0x30]
push esi
mov ecx, ebx
call fcn.10059470
add esp, 0x14
test eax, 0x68c
cmp dword [esp + 0x25c], 0
jne 0x1005bf02
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10117bef
add esp, 4
xchg ebx, eax
xchg ebx, eax
push edi
call fcn.10117bef
add esp, 4
mov ecx, ecx
push ebx
call fcn.10117bef
add esp, 4
mov bh, bh
push ebp
push esi
call fcn.10056300
add esp, 8
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.101180ca
add esp, 0x244
ret
cmp dword [esp + 0x25c], 0
jne 0x1005bf53
mov edx, dword [esp + 0x1c]
push edx
call fcn.10117bef
add esp, 4
mov ebx, ebx
test edi, edi
je 0x1005bf62
push edi
call fcn.10117bef
add esp, 4
mov edi, edi
test ebx, ebx
je 0x1005bf71
push ebx
call fcn.10117bef
add esp, 4
mov ebp, ebp
mov byte [esp + 0x24], 0xc4
mov byte [esp + 0x25], 0xda
mov byte [esp + 0x26], 0xb4
mov byte [esp + 0x27], 0xe6
mov byte [esp + 0x28], 0xb2
mov byte [esp + 0x29], 0xbb
mov byte [esp + 0x2a], 0xd7
mov byte [esp + 0x2b], 0xe3
mov byte [esp + 0x2c], 0
test ah, ah
lea eax, [esp + 0x24]
push eax
push esi
call fcn.100531e0
add esp, 8
mov edi, edi
mov ecx, dword [esp + 0x24c]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.101180ca
add esp, 0x244
ret