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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x28], ax
xor ecx, ecx
mov word [ebp - 0x24], cx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dl, byte [0x5f6139]
mov byte [ebp - 0x20], dl
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov word [ebp - 0x10], cx
cmp dword [0x5f4d28], 0
je 0x462468
mov edx, dword [0x5f4d28]
push edx
call fcn.00532828
add esp, 4
mov dword [0x5f4d28], 0
mov dword [0x5f4d2c], 0
xor eax, eax
mov word [0x563450], ax
xor ecx, ecx
mov word [0x5f4d30], cx
mov edx, dword [ebp + 8]
push edx
call fcn.00423310
add esp, 4
test eax, eax
je 0x4626cb
push 0x565424
mov eax, dword [ebp + 8]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4626c6
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 2
lea edx, [ebp - 0x28]
push edx
call fcn.0053367b
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
push 1
push 2
lea ecx, [ebp - 0x24]
push ecx
call fcn.0053367b
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
push 1
push 4
push 0x5f4d2c
call fcn.0053367b
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
push 1
push 2
push 0x5f4d30
call fcn.0053367b
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 2
push 0x563450
call fcn.0053367b
add esp, 0x10
movsx edx, word [ebp - 0x28]
and edx, 0xff
jne 0x462562
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x24]
push eax
call fcn.0041b3d0
add esp, 4
push 0x5f4d2c
call fcn.0041b490
add esp, 4
push 0x5f4d30
call fcn.0041b3d0
add esp, 4
push 0x563450
call fcn.0041b3d0
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 8
lea edx, [ebp - 0x20]
push edx
call fcn.0053367b
add esp, 0x10
mov byte [ebp - 0x18], 0
movsx eax, word [ebp - 0x24]
mov dword [0x5f4d24], eax
mov ecx, dword [0x5f4d24]
shl ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005324a9
add esp, 4
mov dword [0x5f4d28], eax
cmp dword [0x5f4d28], 0
je 0x4625f9
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x5f4d28]
push edx
call fcn.0053367b
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x4625f9
mov dword [ebp - 8], 0
jmp 0x4625da
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
movsx ecx, word [ebp - 0x24]
cmp dword [ebp - 8], ecx
jge 0x4625f9
mov edx, dword [ebp - 8]
mov eax, dword [0x5f4d28]
lea ecx, [eax + edx*4]
push ecx
call fcn.0041b490
add esp, 4
jmp 0x4625d1
movsx edx, word [0x5f4d30]
movsx eax, word [0x563450]
add eax, edx
mov word [0x563450], ax
movsx ecx, word [0x563450]
cmp ecx, dword [0x5f4d24]
jl 0x462636
movsx edx, word [0x5f4d24]
movsx eax, word [0x563450]
sub eax, edx
mov word [0x563450], ax
jmp 0x46260f
xor ecx, ecx
mov word [0x5f4d30], cx
mov dword [ebp - 0x2c], 8
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00532940
add esp, 0xc
mov cx, word [0x5f4d30]
mov word [ebp - 0x10], cx
cmp dword [ebp - 0x30], 0
je 0x462675
lea edx, [ebp - 0x10]
push edx
call fcn.0041b3d0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
push 1
push 2
lea ecx, [ebp - 0x10]
push ecx
call fcn.005337fa
add esp, 0x10
mov dx, word [0x563450]
mov word [ebp - 0x10], dx
cmp dword [ebp - 0x30], 0
je 0x4626a6
lea eax, [ebp - 0x10]
push eax
call fcn.0041b3d0
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.00431d50
add esp, 4
jmp 0x46282c
push 0x565428
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46282c
mov edx, 1
mov word [ebp - 0x28], dx
mov ax, word [0x5f4d24]
mov word [ebp - 0x24], ax
mov ecx, dword [0x5f4d24]
shl ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005324a9
add esp, 4
mov dword [0x5f4d28], eax
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [0x5f4d2c], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 2
lea edx, [ebp - 0x28]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
push 1
push 2
lea ecx, [ebp - 0x24]
push ecx
call fcn.005337fa
add esp, 0x10
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 ecx, dword [ebp - 0xc]
push ecx
push 1
push 2
push 0x563450
call fcn.005337fa
add esp, 0x10
push 8
push 0x1102600
lea edx, [ebp - 0x20]
push edx
call fcn.00532bd0
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4627b0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jge 0x4627d3
movsx ecx, word [ebp - 0x24]
add ecx, dword [ebp - 8]
movsx edx, cl
mov eax, dword [ebp - 8]
movsx ecx, byte [ebp + eax - 0x20]
add ecx, edx
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x20], cl
jmp 0x4627a7
mov byte [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
push eax
push 1
push 8
lea ecx, [ebp - 0x20]
push ecx
call fcn.005337fa
add esp, 0x10
cmp dword [0x5f4d28], 0
je 0x462820
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [0x5f4d28]
push eax
call fcn.005323e0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x5f4d28]
push eax
call fcn.005337fa
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00431d50
add esp, 4
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret