Function at 0x439065
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
call fcn.0042609c
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0042aeb8
lea ecx, [ebp - 0xc]
call fcn.0042aeb8
lea ecx, [ebp - 8]
call fcn.0042aeb8
mov eax, dword [ebp + 8]
xor edi, edi
cmp word [eax], 0x2a
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x480890
jne 0x4390db
add dword [ebp + 8], 2
mov esi, dword [ebp + 8]
push 0x2c
lea eax, [ebp + 8]
call fcn.0040f443
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
je 0x4390c7
mov word [eax], di
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0042609c
push esi
call fcn.0040ca55
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push 0x2c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d669
push dword [ebp - 0x10]
call fcn.0040ca55
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], 0x2c
mov dword [ebp - 0x1c], ebx
jne 0x439107
add dword [ebp + 8], 2
lea eax, [ebp + 8]
push eax
call fcn.0042609c
mov esi, dword [ebp + 8]
push esi
push 0x480888
call fcn.00426fa9
add esp, 0xc
test al, al
je 0x439233
cmp dword [0x48fdf8], edi
je 0x43933d
cmp word [ebx], di
jne 0x43913f
mov ebx, 0x480890
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x43917e
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], eax
jne 0x43917e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x43933b
xor eax, eax
inc eax
jmp 0x43933b
push 0x1064
lea ecx, [ebp - 0x18]
call fcn.0042add7
push edi
push edi
push edi
push dword [0x48fdf8]
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0x18]
push 2
pop ebx
mov dword [ebp - 4], 1
push 0x1000
lea eax, [esi + 0x19]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x4391fc
push dword [ebp - 4]
push dword [ebp - 4]
push str._r_n__12d_0x__7X
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
mov byte [esi + 0x18], 0x3a
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, ebx
push eax
add ebx, esi
push ebx
push dword [0x48fdf8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xffff
jle 0x4391aa
cmp dword [ebp - 0x14], edi
jne 0x439214
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x48fdf8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
mov dword [0x48fdf8], edi
call fcn.0042602e
jmp 0x43933d
cmp word [ebx], di
jne 0x439242
mov edi, 0x80070057
jmp 0x43933d
mov bx, word [esi]
cmp bx, di
je 0x4392ad
push esi
push str.StartMenu
call fcn.00426fa9
test al, al
pop ecx
pop ecx
jne 0x4392ad
cmp bx, 0x23
jne 0x439285
or dword [ebp - 4], 0xffffffff
push 0x2c
lea eax, [ebp - 4]
push eax
inc esi
lea eax, [ebp + 8]
inc esi
push eax
mov dword [ebp + 8], esi
call fcn.0042d84d
mov ebx, dword [ebp - 4]
add esp, 0xc
cmp ebx, edi
jge 0x4392b2
jmp 0x439238
push esi
push str.TaskBand
call fcn.00426fa9
test al, al
pop ecx
pop ecx
je 0x43929d
mov ebx, 0x150a
jmp 0x4392b2
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 8]
call fcn.00409fd6
mov ebx, dword [ebp - 8]
jmp 0x4392ed
mov ebx, 0x1505
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
jne 0x4392c6
xor edi, edi
inc edi
jmp 0x43933d
push 0x1001
lea ecx, [ebp - 8]
call fcn.0042aeff
push 0x1000
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 8]
cmp word [eax], di
je 0x4392c1
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp word [eax], di
je 0x439238
push eax
call fcn.0040ca55
mov esi, eax
push esi
call fcn.0046646e
test eax, eax
pop ecx
pop ecx
jne 0x439312
push 2
pop edi
jmp 0x43933d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004334dc
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, edi
je 0x4392c1
push ebx
push eax
push dword [ebp - 0xc]
mov word [eax - 2], di
call fcn.00404dda
add esp, 0xc
mov edi, eax
lea ecx, [ebp - 8]
call fcn.0042602e
lea ecx, [ebp - 0xc]
call fcn.0042602e
lea ecx, [ebp - 0x10]
call fcn.0042602e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8