Function at 0x46c660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
movsx eax, word [ebp + 8]
test eax, eax
jl 0x46c68b
movsx ecx, word [ebp + 8]
cmp ecx, 4
jle 0x46c692
xor eax, eax
jmp 0x46ccfe
movsx edx, word [ebp + 8]
cmp dword [edx*4 + 0x5f65cc], 1
jne 0x46c6aa
mov eax, 1
jmp 0x46ccfe
mov eax, dword [ebp + 0xc]
push eax
movsx ecx, word [ebp + 8]
shl ecx, 8
add ecx, 0xd84b80
push ecx
call fcn.00532580
add esp, 8
push 0x567abc
movsx edx, word [ebp + 8]
shl edx, 8
add edx, 0xd84b80
push edx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46c72b
movsx eax, word [ebp + 8]
cmp eax, 1
je 0x46c724
movsx ecx, word [ebp + 8]
shl ecx, 8
add ecx, 0xd84b80
push ecx
push str.ERROR:_Couldnt_open_file:__s
lea edx, [ebp - 0x120]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0
call fcn.00436500
add esp, 8
xor eax, eax
jmp 0x46ccfe
movsx ecx, word [ebp + 8]
shl ecx, 8
add ecx, 0xd84b80
push ecx
push 0x567ae0
lea edx, [ebp - 0x120]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 3
call fcn.00436500
add esp, 8
push 9
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.005323e0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
push 6
push 1
lea eax, [ebp - 0x18]
push eax
call fcn.0053367b
add esp, 0x10
cmp eax, 6
je 0x46c79a
mov ecx, dword [ebp - 8]
push ecx
call fcn.00535898
add esp, 4
xor eax, eax
jmp 0x46ccfe
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00532940
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.00535073
add esp, 4
add eax, 0xa
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xa
jne 0x46c7e7
push 0x567aec
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
je 0x46c7e0
mov dword [ebp - 0x1c], 0x9c40
jmp 0x46c7e7
mov dword [ebp - 0x1c], 0x7530
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00532940
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00532b62
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005352ea
add esp, 4
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
call fcn.005324a9
add esp, 4
movsx ecx, word [ebp + 8]
mov dword [ecx*4 + 0x5f65e0], eax
movsx edx, word [ebp + 8]
cmp dword [edx*4 + 0x5f65e0], 0
jne 0x46c84d
mov eax, dword [ebp - 8]
push eax
call fcn.00535898
add esp, 4
xor eax, eax
jmp 0x46ccfe
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
movsx eax, word [ebp + 8]
mov ecx, dword [eax*4 + 0x5f65e0]
push ecx
call fcn.0053367b
add esp, 0x10
test eax, eax
jne 0x46c8a5
movsx edx, word [ebp + 8]
mov eax, dword [edx*4 + 0x5f65e0]
push eax
call fcn.00532828
add esp, 4
movsx ecx, word [ebp + 8]
mov dword [ecx*4 + 0x5f65e0], 0
mov edx, dword [ebp - 8]
push edx
call fcn.00535898
add esp, 4
xor eax, eax
jmp 0x46ccfe
mov eax, dword [ebp - 8]
push eax
call fcn.00535898
add esp, 4
movsx ecx, word [ebp + 8]
mov dword [ecx*4 + 0x5f65cc], 1
movsx edx, word [ebp + 8]
mov eax, dword [edx*4 + 0x5f65e0]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + eax - 3], 0
mov edx, dword [ebp - 0x1c]
sub edx, 2
movsx eax, word [ebp + 8]
mov dword [eax*4 + 0x5f65f4], edx
movsx ecx, word [ebp + 8]
test ecx, ecx
je 0x46c8f5
movsx edx, word [ebp + 8]
cmp edx, 2
jne 0x46c927
movsx eax, word [0x5f6610]
test eax, eax
je 0x46c90a
mov dword [0x5f6608], 1
call fcn.0046d8d0
movsx ecx, word [ebp + 8]
mov word [ecx*2 + 0xd851a0], ax
mov dword [0x5f6608], 0
jmp 0x46c938
movsx edx, word [ebp + 8]
mov eax, 0x409
mov word [edx*2 + 0xd851a0], ax
movsx ecx, word [ebp + 8]
movsx edx, word [ecx*2 + 0xd851a0]
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0x804
jg 0x46c998
cmp dword [ebp - 0x124], 0x804
je 0x46ca07
mov eax, dword [ebp - 0x124]
sub eax, 0x401
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x4f
ja case.0x46c991.1
mov ecx, dword [ebp - 0x124]
movzx edx, byte [ecx + 0x46cd64]
jmp dword [edx*4 + 0x46cd0c]
cmp dword [ebp - 0x124], 0x816
je 0x46cb6f
jmp case.0x46c991.1
push 0x567af8
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567afc
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b00
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b04
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b08
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b0c
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b10
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b14
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b18
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b1c
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b20
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b24
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b28
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b2c
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b30
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b34
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b38
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b3c
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b40
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b44
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b48
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b4c
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x567b50
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
call fcn.00532580
add esp, 8
jmp 0x46cc6c
push 0x5676f8
movsx ecx, word [ebp + 8]
lea edx, [ecx*4 + 0xd85080]
push edx
call fcn.00532580
add esp, 8
movsx eax, word [ebp + 8]
lea ecx, [eax*4 + 0xd85080]
push ecx
push str.OS_Language:__s
lea edx, [ebp - 0x120]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 2
call fcn.00436500
add esp, 8
movsx ecx, word [ebp + 8]
test ecx, ecx
jne 0x46ccbe
movsx edx, word [ebp + 8]
lea eax, [edx*4 + 0xd85080]
push eax
push 0xd850a0
call fcn.00532580
add esp, 8
push 0xd851c0
push 0x567b64
push 0
call fcn.0046d1b0
add esp, 0xc
push 0xd851c9
push 0xd851c8
call fcn.00532580
add esp, 8
movsx ecx, word [0x5f6610]
test ecx, ecx
je 0x46ccf9
call fcn.0046e5d0
call fcn.0046d800
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret