Function at 0x40af40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4f6fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x228], 0
mov al, byte [0x4f9395]
mov byte [ebp - 0x114], al
push 0xfe
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.004b6780
add esp, 0xc
mov dl, byte [0x4f9396]
mov byte [ebp - 0x14], dl
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov cl, byte [0x4f9397]
mov byte [ebp - 0x214], cl
push 0xfe
push 0
lea edx, [ebp - 0x213]
push edx
call fcn.004b6780
add esp, 0xc
xor eax, eax
mov word [ebp - 0x230], ax
mov dword [ebp - 0x218], 0
cmp dword [0x527380], 1
jne 0x40b03c
cmp dword [ebp + 8], 0xfffffc19
jne 0x40b02f
xor eax, eax
jmp 0x40b815
mov eax, dword [0x4f9b50]
sub eax, 1
jmp 0x40b815
cmp dword [0x54bf34], 1
jne 0x40b04e
cmp dword [ebp + 8], 0xfffffc19
jne 0x40b057
cmp dword [0x54e960], 2
jl 0x40b065
mov ecx, dword [0x4f93c8]
mov dword [0x4f93c8], ecx
jmp 0x40b06f
mov dword [0x4f93c8], 0xffffffff
call fcn.0049edc0
cmp eax, 1
jne 0x40b098
cmp dword [ebp + 0xc], 0
jne 0x40b098
cmp dword [ebp + 8], 0xfffffc1c
je 0x40b098
cmp dword [ebp + 8], 0xfffffc1b
je 0x40b098
mov dword [ebp + 0xc], 1
cmp dword [0x54e958], 1
jne 0x40b0bb
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040d260
add esp, 8
mov eax, dword [0x4f93d4]
jmp 0x40b815
push 0x4d76ac
push 0x5c
push 0x4f93d8
push 0x4d76b8
lea ecx, [ebp - 0x114]
push ecx
call fcn.004b6e08
add esp, 0x14
push 1
push 0x4d76c0
lea edx, [ebp - 0x114]
push edx
call fcn.00419d20
add esp, 0xc
mov dword [ebp - 0x22c], eax
cmp dword [0x54e900], 1
jne 0x40b108
or eax, 0xffffffff
jmp 0x40b815
push 0x127c
call fcn.004b6c11
add esp, 4
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x40b13b
push str.Out_of_Memory_in_Load_classes
push 1
call fcn.004417b0
add esp, 8
or eax, 0xffffffff
jmp 0x40b815
push 0x127c
push 0
mov eax, dword [ebp - 0x218]
push eax
call fcn.004b6780
add esp, 0xc
push 0xc84
push 0
push 0x18a0580
call fcn.004b6780
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x40b542
mov dword [ebp - 0x238], 0
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0045c6f0
add esp, 4
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0
jmp 0x40b1ac
mov edx, dword [ebp - 0x224]
add edx, 1
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x228]
jge 0x40b509
mov dword [ebp - 0x238], 0
push 0x127c
push 0
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004b6780
add esp, 0xc
mov edx, dword [ebp - 0x22c]
push edx
push 1
push 0x2bc
mov eax, dword [ebp - 0x218]
push eax
call fcn.004b8e47
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.00411370
add esp, 8
mov edx, dword [ebp - 0x218]
movsx eax, word [edx + 0x70]
mov ecx, 4
shl ecx, 0
and eax, dword [ecx + 0x4e8480]
jne 0x40b230
mov dword [ebp - 0x240], 1
push 0
mov edx, dword [ebp - 0x218]
push edx
call fcn.0040f600
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x218]
mov word [ecx + 0x2be], ax
mov edx, dword [ebp - 0x218]
push edx
call fcn.00410640
add esp, 4
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x40b273
jmp 0x40b509
cmp dword [0x54e960], 2
jge 0x40b2b3
mov eax, dword [ebp - 0x218]
movsx ecx, word [eax + 0xfc]
test ecx, ecx
jle 0x40b2a1
mov edx, dword [ebp - 0x218]
movsx eax, word [edx + 0xfc]
cmp eax, 0x1388
jl 0x40b2b3
mov ecx, 1
mov edx, dword [ebp - 0x218]
mov word [edx + 0xfc], cx
cmp dword [ebp - 0x21c], 0x320
jge 0x40b4ff
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x220], 0
jmp 0x40b2e8
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
cmp ecx, dword [0x4f9b50]
jge 0x40b39c
cmp dword [ebp - 0x234], 0
jne 0x40b39c
mov edx, dword [ebp - 0x220]
imul edx, edx, 0x127c
add edx, 0x14b6412
push edx
mov eax, dword [ebp - 0x218]
add eax, 0x52
push eax
call fcn.004b68e0
add esp, 8
test eax, eax
jne 0x40b397
mov ecx, dword [ebp - 0x220]
imul ecx, ecx, 0x127c
mov dx, word [ecx + 0x14b641c]
mov word [ebp - 0x230], dx
push 0x2bc
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x220]
imul ecx, ecx, 0x127c
add ecx, 0x14b63c0
push ecx
call fcn.004b8640
add esp, 0xc
mov edx, dword [ebp - 0x220]
imul edx, edx, 0x127c
mov ax, word [ebp - 0x230]
mov word [edx + 0x14b641c], ax
mov dword [ebp - 0x234], 1
jmp 0x40b39c
jmp 0x40b2d9
cmp dword [ebp - 0x234], 0
jne 0x40b3f9
mov ecx, dword [0x4f9b50]
imul ecx, ecx, 0x127c
add ecx, 0x14b63c0
push 0x127c
mov edx, dword [ebp - 0x218]
push edx
push ecx
call fcn.004b8640
add esp, 0xc
mov eax, dword [0x4f9b50]
mov dword [ebp - 0x220], eax
cmp dword [0x4f9b50], 0x320
jl 0x40b3ea
call fcn.0040feb0
jmp 0x40b3f9
mov ecx, dword [0x4f9b50]
add ecx, 1
mov dword [0x4f9b50], ecx
mov edx, dword [ebp - 0x218]
movsx eax, word [edx + 0x5e]
cmp eax, dword [ebp + 8]
je 0x40b42b
cmp dword [ebp + 8], 0xffffffff
je 0x40b42b
cmp dword [ebp + 8], 0xfffffffe
jne 0x40b4a4
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.0040ad70
add esp, 4
test eax, eax
jne 0x40b4a4
cmp dword [ebp + 0xc], 1
je 0x40b444
mov edx, dword [ebp - 0x218]
push edx
call fcn.0040ada0
add esp, 4
test eax, eax
jne 0x40b4a4
mov eax, dword [ebp - 0x218]
movsx ecx, word [eax + 0xfc]
movsx edx, word [0x4e853c]
cmp ecx, edx
je 0x40b482
cmp dword [0x54e958], 0
je 0x40b482
mov eax, dword [ebp - 0x218]
push eax
call fcn.0040ad40
add esp, 4
cmp eax, 1
jne 0x40b4a4
cmp dword [ebp + 8], 0xfffffc1a
jne 0x40b4a4
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
mov dword [ecx*4 + 0x18a0580], edx
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
movsx edx, word [ecx + 0x5e]
cmp edx, 0xfffffc19
jne 0x40b4fd
cmp dword [0x4f93c8], 0xffffffff
jne 0x40b4fd
mov eax, dword [ebp - 0x220]
mov dword [0x4f93c8], eax
cmp dword [0x4f9364], 0
jne 0x40b4fd
mov ecx, dword [0x4f93c8]
push ecx
mov edx, dword [ebp - 0x218]
add edx, 0x52
push edx
push str.MAP_INDEX_A32_s_B14_d
push 1
call fcn.004417b0
add esp, 0x10
mov dword [0x4f9364], 1
jmp 0x40b504
call fcn.0040feb0
jmp 0x40b19d
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00419ca0
add esp, 4
mov dword [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x21c]
mov dword [0x4f93d4], ecx
push 0x18a0580
mov edx, dword [ebp - 0x21c]
push edx
call fcn.00470d60
add esp, 8
cmp dword [ebp - 0x21c], 0
jne 0x40b76e
cmp dword [ebp + 8], 0xfffffc19
jne 0x40b76e
movsx eax, word [0x4e853c]
cmp eax, 0xffffffff
je 0x40b76e
cmp dword [0x54e900], 0
jne 0x40b76e
mov dword [0x4f93d4], 0
mov ecx, dword [0x4f9b50]
mov dword [ebp - 0x228], ecx
mov edx, dword [0x4f9b50]
add edx, 1
mov dword [0x4f9b50], edx
push 0x127c
push 0
mov eax, dword [ebp - 0x218]
push eax
call fcn.004b6780
add esp, 0xc
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call fcn.004102f0
add esp, 8
mov eax, dword [ebp - 0x218]
mov cx, word [ebp + 8]
mov word [eax + 0x5e], cx
mov edx, dword [ebp - 0x218]
mov ax, word [0x4e853c]
mov word [edx + 0xfc], ax
push 0x4f93d8
call fcn.00419870
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
movzx edx, word [0x4e853c]
push edx
call fcn.00431520
add esp, 8
lea eax, [ebp - 0x14]
push eax
push 0x4f93d8
push 0x4d76fc
lea ecx, [ebp - 0x214]
push ecx
call fcn.004b6e08
add esp, 0x10
lea edx, [ebp - 0x214]
push edx
call fcn.00419870
add esp, 4
push 0x4f9398
mov eax, dword [ebp - 0x218]
push eax
call fcn.0040c7a0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x40b67a
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004b6bd9
add esp, 4
mov dword [ebp - 0x218], 0
or eax, 0xffffffff
jmp 0x40b815
lea edx, [ebp - 0x14]
push edx
movzx eax, word [0x4e853c]
push eax
call fcn.00431520
add esp, 8
mov ecx, dword [ebp - 0x218]
add ecx, 0x52
push ecx
push 0x5c
lea edx, [ebp - 0x14]
push edx
push 0x4f93d8
push 0x4d7704
lea eax, [ebp - 0x114]
push eax
call fcn.004b6e08
add esp, 0x18
push 0x4f93d8
call fcn.00419870
add esp, 4
lea ecx, [ebp - 0x114]
push ecx
call fcn.00419870
add esp, 4
cmp dword [0x54e900], 1
jne 0x40b6fd
mov edx, dword [ebp - 0x218]
push edx
call fcn.004b6bd9
add esp, 4
mov dword [ebp - 0x218], 0
or eax, 0xffffffff
jmp 0x40b815
mov eax, dword [ebp - 0x228]
imul eax, eax, 0x127c
add eax, 0x14b63c0
push 0x127c
mov ecx, dword [ebp - 0x218]
push ecx
push eax
call fcn.004b8640
add esp, 0xc
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 0x228]
mov dword [edx + 0x18a0580], eax
cmp dword [ebp + 8], 0xfffffc19
jne 0x40b74e
mov ecx, dword [ebp - 0x228]
mov dword [0x4f93c8], ecx
jmp 0x40b75a
mov edx, dword [0x4f93c8]
mov dword [0x4f93c8], edx
mov dword [0x4f93d4], 1
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x218], 0
je 0x40b790
mov eax, dword [ebp - 0x218]
push eax
call fcn.004b6bd9
add esp, 4
mov dword [ebp - 0x218], 0
cmp dword [ebp - 0x240], 1
jne 0x40b80f
cmp dword [0x4f9360], 0
jne 0x40b80f
mov dword [0x4f9360], 1
mov ecx, dword [0x4f93d4]
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x224], 0
jmp 0x40b7d3
mov edx, dword [ebp - 0x224]
add edx, 1
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
cmp eax, dword [0x4f9b50]
jge 0x40b803
push 0x4f9399
mov ecx, dword [ebp - 0x224]
imul ecx, ecx, 0x127c
add ecx, 0x14b63c0
push ecx
call fcn.0040c7a0
add esp, 8
jmp 0x40b7c4
mov edx, dword [ebp - 0x23c]
mov dword [0x4f93d4], edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6253
mov esp, ebp
pop ebp
ret