Function at 0x460850
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e63e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0043f2e0
push 2
call fcn.00445f00
xor esi, esi
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x46088d
mov word [eax], si
push 2
mov dword [esp + 0x34], esi
call fcn.00445f00
add esp, 4
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x4608a6
mov word [eax], si
push 2
call fcn.00445f00
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [esp + 0x18], edi
je 0x4608bd
mov word [edi], si
mov eax, dword [esp + 0x38]
cmp word [eax], 0x2a
mov byte [esp + 0x30], 2
mov dword [esp + 0x20], esi
mov ebp, 0x4f57e0
jne 0x460924
add eax, 2
mov dword [esp + 0x38], eax
mov ebx, eax
je 0x460900
mov cx, word [eax]
cmp cx, si
je 0x46090f
cmp cx, 0x2c
je 0x4608fc
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x4608e8
jmp 0x46090b
mov dword [esp + 0x38], eax
cmp word [eax], si
je 0x46090f
mov word [eax], si
add eax, 2
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0043f2e0
push ebx
call fcn.0042063d
add esp, 8
mov ebp, eax
push 0x2c
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00449370
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042063d
mov edx, dword [esp + 0x48]
add esp, 0x10
cmp word [edx], 0x2c
mov ebx, eax
mov dword [esp + 0x24], ebx
jne 0x46095b
mov eax, edx
add eax, 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
call fcn.0043f2e0
mov esi, dword [esp + 0x3c]
push esi
push 0x4f57d8
call fcn.00440490
add esp, 0xc
test al, al
je 0x460bb2
mov eax, dword [0x51908c]
xor ebp, ebp
cmp eax, ebp
jne 0x4609e4
cmp edi, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x4609a2
mov ecx, dword [0x51927c]
add edi, 0xfffffff8
push edi
push ebp
push ecx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4609b8
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebp
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4609cd
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push ebp
push eax
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
cmp word [ebx], bp
mov esi, ebx
jne 0x4609f0
mov esi, 0x4f57e0
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
mov dword [esp + 0x38], eax
jne 0x460a88
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
jne 0x460a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, ebp
jne 0x460a2e
mov ebx, 1
cmp edi, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x460a46
mov ecx, dword [0x51927c]
add edi, 0xfffffff8
push edi
push ebp
push ecx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x460a5c
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebp
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x460a71
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push ebp
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push 0x1065
call fcn.00445f00
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x460a9e
mov byte [esi], 0
mov ecx, dword [0x51908c]
push ebp
push ebp
push ebp
push ecx
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, 2
mov edi, 1
mov edx, dword [esp + 0x38]
push 0x1000
lea eax, [esi + 0x19]
push eax
push edi
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x460b0f
push edi
push edi
push str._r_n__12d_0x__7X
push esi
call ebx
add esp, 0x10
push 0
lea eax, [esp + 0x24]
push eax
push esi
mov byte [esi + 0x18], 0x3a
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x51908c]
sub eax, ebp
push eax
add ebp, esi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
inc edi
cmp edi, 0xffff
jle 0x460ac2
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x460b28
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [0x51908c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [0x51908c], 0
je 0x460b57
mov eax, dword [0x51927c]
add esi, 0xfffffff8
push esi
push 0
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x460b6e
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460b85
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x460b9b
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
cmp word [ebx], 0
jne 0x460c18
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x460bd1
mov ecx, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push ecx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460be8
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x460bfe
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov di, word [esi]
test di, di
je 0x460ccc
push esi
push str.StartMenu
call fcn.00440490
add esp, 8
test al, al
jne 0x460ccc
cmp di, 0x23
jne 0x460ca0
push 0x2c
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
add esi, 2
push edx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x44], esi
call fcn.00449750
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebx, ebx
jge 0x460cd1
lea ecx, [esp + 0x18]
call fcn.0043f290
lea ecx, [esp + 0x10]
call fcn.0043f290
lea ecx, [esp + 0x14]
call fcn.0043f290
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push esi
push str.TaskBand
call fcn.00440490
add esp, 8
test al, al
je 0x460cb9
mov ebx, 0x150a
jmp 0x460cd1
push esi
lea ecx, [esp + 0x1c]
call fcn.004575a0
mov esi, dword [esp + 0x18]
jmp 0x460d7a
mov ebx, 0x1505
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
mov eax, dword [esp + 0x18]
jne 0x460d41
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x460cf9
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push edi
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460d10
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x460d27
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push eax
mov eax, 0x2004
call fcn.00445f60
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x460d62
mov word [esi + 0x2002], 0
push 0x1000
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esi], 0
je 0x460de9
mov ebx, dword [esp + 0x24]
cmp word [ebx], 0
je 0x460c6b
push ebx
call fcn.0042063d
mov edi, eax
push edi
call fcn.004abec0
add esp, 8
test eax, eax
jne 0x460dce
lea ecx, [esp + 0x18]
call fcn.0043f290
lea ecx, [esp + 0x10]
call fcn.0043f290
lea ecx, [esp + 0x14]
call fcn.0043f290
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00454f50
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x460e1e
lea ecx, [esp + 0x18]
call fcn.0043f290
lea ecx, [esp + 0x10]
call fcn.0043f290
lea ecx, [esp + 0x14]
call fcn.0043f290
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push esi
push eax
mov word [eax - 2], 0
mov eax, dword [esp + 0x18]
push eax
call fcn.00417b89
add esp, 0xc
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0043f290
lea ecx, [esp + 0x10]
call fcn.0043f290
lea ecx, [esp + 0x14]
call fcn.0043f290
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8