Function at 0x4643a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x300]
push esi
push edi
xor edi, edi
mov ebx, 1
cmp eax, ebx
mov dword [ebp + 0x28], edi
jne 0x4643c4
mov dword [ebp + 0x24], edi
jmp 0x4643e1
cmp eax, 2
je 0x4643de
cmp dword [esp + 0x24], 4
mov dword [ebp + 0x24], ebx
jne 0x4643d6
mov dword [ebp + 0x28], ebx
cmp eax, 3
jne 0x4643e1
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], ebx
mov esi, ebp
call fcn.00462510
mov esi, dword [esp + 0x28]
cmp esi, 2
mov dword [ebp + 0x2b4], edi
jne 0x46442d
mov ecx, dword [ebp + 0x2dc]
mov dword [ebp + 0x2b4], ebx
mov dword [ecx + 0x10], 0x8000
mov edx, dword [ebp + 0x2dc]
mov dword [edx + 0xc], ebx
mov ecx, dword [ebp + 0x2dc]
push 0x47c518
or eax, 0xffffffff
push ecx
mov dword [esp + 0x24], eax
call fcn.00466ba0
jmp 0x4644a1
mov eax, dword [esp + 0x20]
cmp word [eax], di
je 0x46444d
push 0
push 0
push 2
push 0
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x464455
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x464689
xor eax, eax
cmp esi, eax
jne 0x4644a1
cmp dword [ebp + 0x24], eax
je 0x4644a1
cmp dword [ebp + 0x28], eax
mov dword [esp + 0x28], eax
push eax
je 0x46448a
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push 3
push 0x47ead0
push eax
jmp 0x46449b
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push 2
push 0x47ead4
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0x7f02
push 0
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebx, dword [esp + 0x24]
mov dword [0x489a74], eax
mov eax, dword [esp + 0x1c]
mov edi, ebx
mov ecx, ebp
call fcn.004642f0
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 0x2b8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x464570
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call edi
mov esi, eax
test esi, esi
jl 0x464618
lea esp, [esp]
lea ebx, [esp + 0x2c]
mov eax, ebp
call fcn.00461eb0
test eax, eax
je 0x464554
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
call eax
mov ebx, dword [ebp + 4]
imul ebx, dword [esp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp]
add ebx, eax
mov eax, dword [edx + 0x78]
push esi
push ebx
mov ecx, ebp
call eax
test eax, eax
je 0x464554
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
mov edx, dword [edx + 0x84]
push eax
push ebx
push ecx
mov ecx, ebp
call edx
test eax, eax
je 0x46460c
mov eax, dword [ebp + 0x2b8]
push 2
push esi
push 0x100c
push eax
call edi
mov esi, eax
test esi, esi
jge 0x464500
jmp 0x464614
push 0
push 0
push 0x1004
push eax
call edi
xor esi, esi
test eax, eax
mov dword [esp + 0x14], eax
jle 0x464618
lea ebx, [ebx]
lea ebx, [esp + 0x2c]
mov eax, ebp
call fcn.00461eb0
test eax, eax
je 0x464601
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
call eax
mov ebx, dword [ebp + 4]
imul ebx, dword [esp + 0x2c]
mov eax, dword [eax]
add ebx, eax
cmp dword [ebp + 0x2f8], 0
mov eax, dword [ebp + 0x2b8]
je 0x4645ca
push 0xf000
jmp 0x4645cc
push 2
push esi
push 0x102c
push eax
call edi
mov edx, dword [ebp]
mov eax, dword [edx + 0x78]
push esi
push ebx
mov ecx, ebp
call eax
test eax, eax
je 0x464601
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
mov edx, dword [edx + 0x84]
push eax
push ebx
push ecx
mov ecx, ebp
call edx
test eax, eax
je 0x46460c
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x464590
jmp 0x464614
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x24]
cmp ebx, 5
je 0x464622
cmp ebx, 6
jne 0x464634
mov eax, dword [ebp]
mov esi, dword [esp + 0x1c]
mov edx, dword [eax + 0x58]
push ebx
push esi
mov ecx, ebp
call edx
jmp 0x464638
mov esi, dword [esp + 0x1c]
cmp ebx, 7
jne 0x46464a
mov eax, dword [ebp]
mov edx, dword [eax + 0x2c]
push esi
mov ecx, ebp
call edx
jmp 0x46465d
cmp ebx, 3
jne 0x46465d
mov edx, str._r_n__r_n
mov eax, esi
mov ecx, ebp
call fcn.004622a0
mov eax, dword [esp + 0x20]
cmp word [eax], 0
je 0x46466e
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [0x489a74]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14