Function at 0x45abf0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [edi + 0x330]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov ecx, 1
cmp eax, ecx
push esi
mov dword [edi + 0x28], ebx
je 0x45ac22
cmp eax, 2
jne 0x45ac18
mov dword [edi + 0x24], ecx
jmp 0x45ac25
cmp ebp, 4
je 0x45ac22
mov dword [edi + 0x24], ecx
jmp 0x45ac25
mov dword [edi + 0x24], ebx
cmp eax, 3
jne 0x45ac30
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov esi, edi
call fcn.0045a140
mov eax, dword [esp + 0x18]
cmp word [eax], bx
je 0x45ac5b
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0xc], ebx
jmp 0x45ac69
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0xc], eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45aeb8
xor esi, esi
cmp dword [esp + 0x20], esi
jne 0x45acaa
cmp dword [edi + 0x24], esi
je 0x45acaa
cmp dword [edi + 0x28], esi
mov dword [esp + 0x20], esi
push esi
je 0x45ac97
lea eax, [esp + 0x24]
push eax
push 3
push 0x470fa0
jmp 0x45aca3
lea ecx, [esp + 0x24]
push ecx
push 2
push 0x470fa4
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x7f02
push esi
mov dword [esp + 0x28], 1
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebp, 5
mov dword [0x47b230], eax
je 0x45acd4
cmp ebp, 6
jne 0x45acdf
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
push ebp
push ebx
mov ecx, edi
call eax
cmp ebp, 7
jne 0x45acf0
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push ebx
mov ecx, edi
call eax
jmp 0x45ad21
cmp ebp, 2
jne 0x45ad07
cmp dword [edi + 0x32c], esi
je 0x45ad21
push esi
mov esi, edi
call fcn.00459630
jmp 0x45ad1d
cmp ebp, 4
jne 0x45ad21
cmp dword [edi + 0x32c], esi
je 0x45ad21
push esi
push ebx
mov ebx, edi
call fcn.00459d20
mov ebx, dword [esp + 0xc]
cmp dword [esp + 0x24], 0
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
je 0x45adbd
mov ecx, dword [edi + 0x2ac]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebp
mov esi, eax
test esi, esi
jl 0x45ae65
mov edi, edi
lea ebx, [esp + 0x24]
mov eax, edi
call fcn.004598b0
test eax, eax
je 0x45ada1
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov ebx, dword [edi + 4]
imul ebx, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [edi]
add ebx, eax
mov eax, dword [edx + 0x74]
push esi
push ebx
mov ecx, edi
call eax
test eax, eax
je 0x45ada1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x80]
push eax
push ebx
push ecx
mov ecx, edi
call edx
test eax, eax
je 0x45ae59
mov eax, dword [edi + 0x2ac]
push 2
push esi
push 0x100c
push eax
call ebp
mov esi, eax
test esi, esi
jge 0x45ad50
jmp 0x45ae61
mov eax, dword [edi + 0x2ac]
push 0
push 0
push 0x1004
push eax
call ebp
xor esi, esi
test eax, eax
mov dword [esp + 0x10], eax
jle 0x45ae65
lea ecx, [ecx]
lea ebx, [esp + 0x24]
mov eax, edi
call fcn.004598b0
test eax, eax
je 0x45ae4e
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov ebx, dword [edi + 4]
imul ebx, dword [esp + 0x24]
mov eax, dword [eax]
add ebx, eax
cmp dword [edi + 0x328], 0
mov eax, dword [edi + 0x2ac]
je 0x45ae19
push 0xf000
jmp 0x45ae1b
push 2
push esi
push 0x102c
push eax
call ebp
mov edx, dword [edi]
mov eax, dword [edx + 0x74]
push esi
push ebx
mov ecx, edi
call eax
test eax, eax
je 0x45ae4e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x80]
push eax
push ebx
push ecx
mov ecx, edi
call edx
test eax, eax
je 0x45ae59
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x45ade0
jmp 0x45ae61
mov dword [esp + 0x20], 0
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
cmp esi, 5
je 0x45ae73
cmp esi, 6
jne 0x45ae7e
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
push esi
push ebx
mov ecx, edi
call edx
cmp esi, 7
jne 0x45ae8d
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, edi
call edx
mov eax, dword [esp + 0x18]
cmp word [eax], 0
je 0x45ae9e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x47b230]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10