Function at 0x462840
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov al, byte [0x5f613a]
mov byte [ebp - 0x238], al
push 0xfe
push 0
lea ecx, [ebp - 0x237]
push ecx
call fcn.005323e0
add esp, 0xc
mov dl, byte [0x5f613b]
mov byte [ebp - 0x130], dl
push 0xfe
push 0
lea eax, [ebp - 0x12f]
push eax
call fcn.005323e0
add esp, 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov ecx, 1
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x18], dx
mov dword [ebp - 0x1c], 0
push 0x1102600
push 0x5c
mov eax, dword [0x5c4c28]
imul eax, eax, 0x127c
add eax, 0x11a6f12
push eax
push 0x5c
push 0x5c44f8
push 0x56542c
lea ecx, [ebp - 0x130]
push ecx
call fcn.00532706
add esp, 0x1c
cmp dword [0x5f6630], 1
jne 0x462945
cmp dword [0x5f663c], 0
je 0x462945
push 0x1068ea0
push 0x565440
lea edx, [ebp - 0x130]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call fcn.004623f0
add esp, 4
cmp dword [0x5f4d2c], 0
jne 0x462962
jmp 0x463135
cmp dword [0x5f4d28], 0
jne 0x462970
jmp 0x463135
mov ecx, dword [0x5f4d24]
mov edx, dword [0x5f4d28]
cmp dword [edx + ecx*4 - 4], 0
je 0x4629a5
mov eax, dword [ebp + 8]
push eax
call fcn.0042db70
add esp, 4
cmp eax, 1
jne 0x4629a5
cmp dword [ebp + 0x10], 6
je 0x4629a5
cmp dword [ebp + 0x10], 4
je 0x4629a5
jmp 0x463135
push 0x56544c
push 0x5c5ed8
push 0x565458
lea ecx, [ebp - 0x238]
push ecx
call fcn.00532706
add esp, 0x10
push 0x565460
lea edx, [ebp - 0x238]
push edx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x462a7b
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00532940
add esp, 0xc
test eax, eax
je 0x462a09
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00431d50
add esp, 4
jmp 0x463135
mov edx, dword [ebp - 0xc]
push edx
call fcn.00532b62
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x462a2f
mov eax, dword [ebp - 0xc]
push eax
call fcn.00431d50
add esp, 4
jmp 0x463135
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005352ea
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
call fcn.005324a9
add esp, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x462a6f
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 0x134]
push edx
call fcn.0053367b
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.00431d50
add esp, 4
cmp dword [ebp - 0x134], 0
je 0x462a8a
cmp dword [ebp - 0x24], 0
jne 0x462a8f
jmp 0x463135
cmp dword [ebp - 0x24], 0x2c
jg 0x462a9a
jmp 0x463135
mov ecx, dword [ebp - 0x24]
shl ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005324a9
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x462ad6
mov eax, dword [ebp - 0x134]
push eax
call fcn.00532828
add esp, 4
mov dword [ebp - 0x134], 0
jmp 0x463135
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x134]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004939f0
add esp, 0x10
mov edx, dword [ebp - 0x134]
push edx
call fcn.00532828
add esp, 4
mov dword [ebp - 0x134], 0
mov ax, word [0x5f4d30]
add ax, 1
mov word [0x5f4d30], ax
movsx ecx, word [0x5f4d30]
cmp ecx, dword [0x5f4d24]
jle 0x462b35
mov edx, 1
mov word [0x5f4d30], dx
movsx eax, word [0x563450]
movsx ecx, word [0x5f4d30]
lea edx, [eax + ecx - 1]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x5f4d24]
jl 0x462b63
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x5f4d24]
mov dword [ebp - 0x10], ecx
jmp 0x462b4a
mov edx, dword [ebp - 0x10]
mov eax, dword [0x5f4d28]
cmp dword [eax + edx*4], 0
je 0x462e9f
mov ecx, dword [0x5f4d2c]
push ecx
call fcn.005324a9
add esp, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x462bab
mov edx, dword [ebp - 0x14]
push edx
call fcn.00532828
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x463135
push 0x565464
lea eax, [ebp - 0x130]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x462e86
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [0x5f4d2c]
push edx
mov eax, dword [ebp - 0x134]
push eax
call fcn.0053367b
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00431d50
add esp, 4
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
mov cx, word [eax]
mov word [ebp - 0x20], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [0x5f4d28]
mov ecx, dword [ebp - 0x134]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x23c]
add edx, 0x14
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx]
mov dword [ebp - 0x240], edx
movsx eax, word [ebp - 0x20]
and eax, 0xff
jne 0x462c99
lea ecx, [ebp - 0x240]
push ecx
call fcn.0041b490
add esp, 4
mov edx, dword [ebp - 0x240]
add edx, 0x1c
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x5f4d28]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
add eax, dword [ebp - 0x240]
mov ecx, dword [0x5f4d2c]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x134]
add edx, dword [ebp - 0x248]
add edx, dword [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x248]
push eax
call fcn.00533040
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x462d09
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [0x5f4d24]
jge 0x462d48
mov eax, dword [ebp - 8]
mov ecx, dword [0x5f4d28]
mov edx, dword [ecx + eax*4]
cmp edx, dword [ebp - 0x248]
jle 0x462d46
mov eax, dword [ebp - 8]
mov ecx, dword [0x5f4d28]
mov edx, dword [ecx + eax*4]
sub edx, dword [ebp - 0x240]
mov eax, dword [ebp - 8]
mov ecx, dword [0x5f4d28]
mov dword [ecx + eax*4], edx
jmp 0x462d00
mov edx, dword [ebp - 0x10]
mov eax, dword [0x5f4d28]
mov dword [eax + edx*4], 0
mov ecx, dword [0x5f4d2c]
sub ecx, dword [ebp - 0x240]
mov dword [0x5f4d2c], ecx
mov dword [ebp - 0x28], 4
mov edx, dword [0x5f4d2c]
mov dword [ebp - 0x1c], edx
movsx eax, word [ebp - 0x20]
and eax, 0xff
jne 0x462d90
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0041b490
add esp, 4
push 4
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x28]
push eax
call fcn.00533040
add esp, 0xc
mov dword [ebp - 0x28], 0x14
mov ecx, dword [0x5f4d24]
shl ecx, 2
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
push edx
mov eax, dword [0x5f4d28]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, dword [ebp - 0x28]
push ecx
call fcn.00533040
add esp, 0xc
movsx edx, word [ebp - 0x20]
and edx, 0xff
jne 0x462e41
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 8], 0
jmp 0x462e16
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [0x5f4d24]
jge 0x462e41
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0041b490
add esp, 4
mov edx, dword [ebp - 0x24c]
add edx, 4
mov dword [ebp - 0x24c], edx
jmp 0x462e0d
push 0x565468
lea eax, [ebp - 0x130]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x462e86
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [0x5f4d2c]
push edx
mov eax, dword [ebp - 0x134]
push eax
call fcn.005337fa
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00431d50
add esp, 4
mov edx, dword [ebp - 0x134]
push edx
call fcn.00532828
add esp, 4
mov dword [ebp - 0x134], 0
push 0x56546c
lea eax, [ebp - 0x130]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x463100
mov cl, byte [0x5f613c]
mov byte [ebp - 0x350], cl
push 0xfe
push 0
lea edx, [ebp - 0x34f]
push edx
call fcn.005323e0
add esp, 0xc
push 0xc8
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.005323e0
add esp, 0xc
call fcn.00483ee0
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.00532580
add esp, 8
push 4
push 1
lea edx, [ebp - 0x350]
push edx
call fcn.00433b80
add esp, 0xc
mov word [ebp - 0x418], ax
push 2
push 6
lea eax, [ebp - 0x350]
push eax
call fcn.00433b80
add esp, 0xc
mov word [ebp - 0x416], ax
push 2
push 9
lea ecx, [ebp - 0x350]
push ecx
call fcn.00433b80
add esp, 0xc
mov word [ebp - 0x414], ax
call fcn.00483f80
push eax
lea edx, [ebp - 0x412]
push edx
call fcn.00532580
add esp, 8
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40c], ax
mov cx, word [ebp + 0x10]
mov word [ebp - 0x40a], cx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x408], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x5f4d28]
mov edx, dword [0x5f4d2c]
mov dword [ecx + eax*4], edx
mov eax, dword [0x5f4d2c]
mov dword [0x5f4d34], eax
push 0
mov ecx, dword [0x5f4d2c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00532940
add esp, 0xc
push 0
push 3
lea eax, [ebp - 0x418]
push eax
call fcn.0041aba0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 0x14
lea edx, [ebp - 0x418]
push edx
call fcn.005337fa
add esp, 0x10
push 0
push 3
lea eax, [ebp - 0x418]
push eax
call fcn.0041aba0
add esp, 0xc
mov ecx, dword [0x5f4d2c]
add ecx, 0x14
mov dword [0x5f4d2c], ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
push 4
lea eax, [ebp - 4]
push eax
call fcn.005337fa
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 4
lea edx, [ebp - 0x24]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [0x5f4d2c]
add eax, 4
mov dword [0x5f4d2c], eax
mov ecx, dword [0x5f4d2c]
add ecx, 4
mov dword [0x5f4d2c], ecx
mov edx, dword [0x5f4d2c]
add edx, dword [ebp - 4]
mov dword [0x5f4d2c], edx
mov dword [ebp - 0x28], 4
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00532940
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
push 1
push 4
push 0x5f4d2c
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
push 1
push 2
push 0x5f4d30
call fcn.005337fa
add esp, 0x10
mov dword [ebp - 0x28], 0x14
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00532940
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
push 1
push 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x5f4d28]
lea edx, [ecx + eax*4]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.00431d50
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00532828
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [0x5f4d28], 0
je 0x463135
mov edx, dword [0x5f4d28]
push edx
call fcn.00532828
add esp, 4
mov dword [0x5f4d28], 0
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret