Function at 0x430685
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [ebp + 8]
call fcn.00429ef2
lea ecx, [ebp - 0x10]
call fcn.0042460b
lea ecx, [ebp - 0xc]
call fcn.0042460b
lea ecx, [ebp - 8]
call fcn.0042460b
mov eax, dword [ebp + 8]
xor edi, edi
cmp word [eax], 0x2a
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x47ac8c
jne 0x4306f7
add dword [ebp + 8], 2
mov esi, dword [ebp + 8]
push 0x2c
lea eax, [ebp + 8]
call fcn.00429fa7
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
je 0x4306e5
mov word [eax], di
inc eax
inc eax
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.00429ef2
push esi
call fcn.00412d51
pop ecx
mov dword [ebp - 0x18], eax
push 0x2c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042df66
push dword [ebp - 0x10]
call fcn.00412d51
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], 0x2c
mov dword [ebp - 0x1c], ebx
jne 0x430723
add dword [ebp + 8], 2
lea ecx, [ebp + 8]
call fcn.00429ef2
mov esi, dword [ebp + 8]
push esi
push 0x47ac84
call fcn.004257d3
test al, al
pop ecx
pop ecx
je 0x43084d
cmp dword [0x48ade4], edi
je 0x430954
cmp word [ebx], di
jne 0x430759
mov ebx, 0x47ac8c
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 0x430798
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], eax
jne 0x430798
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jne 0x430952
xor eax, eax
inc eax
jmp 0x430952
push 0x1064
lea ecx, [ebp - 0x18]
call fcn.00424576
push edi
push edi
push edi
push dword [0x48ade4]
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 0x430816
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 fcn.004617f0
pop ecx
sub eax, ebx
push eax
add ebx, esi
push ebx
push dword [0x48ade4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
xor ebx, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xffff
jle 0x4307c4
cmp dword [ebp - 0x14], edi
jne 0x43082e
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [0x48ade4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x18]
mov dword [0x48ade4], edi
call fcn.00424686
jmp 0x430954
cmp word [ebx], di
jne 0x43085c
mov edi, 0x80070057
jmp 0x430954
mov bx, word [esi]
cmp bx, di
je 0x4308c7
push esi
push str.StartMenu
call fcn.004257d3
test al, al
pop ecx
pop ecx
jne 0x4308c7
cmp bx, 0x23
jne 0x43089f
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.0042e1ad
mov ebx, dword [ebp - 4]
add esp, 0xc
cmp ebx, edi
jge 0x4308cc
jmp 0x430852
push esi
push str.TaskBand
call fcn.004257d3
test al, al
pop ecx
pop ecx
je 0x4308b7
mov ebx, 0x150a
jmp 0x4308cc
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 8]
call fcn.00409ba0
mov ebx, dword [ebp - 8]
jmp 0x430907
mov ebx, 0x1505
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, eax
cmp esi, edi
jne 0x4308e0
xor edi, edi
inc edi
jmp 0x430954
push 0x1001
lea ecx, [ebp - 8]
call fcn.00424699
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 0x4308db
mov ebx, eax
mov esi, dword [ebp - 0x1c]
cmp word [esi], di
je 0x430852
push esi
call fcn.004614b5
test eax, eax
pop ecx
jne 0x430923
push 2
pop edi
jmp 0x430954
push esi
call fcn.00412d51
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0042921d
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, edi
je 0x4308db
push ebx
push eax
push dword [ebp - 0xc]
mov word [eax - 2], di
call fcn.00404c02
add esp, 0xc
mov edi, eax
lea ecx, [ebp - 8]
call fcn.00424686
lea ecx, [ebp - 0xc]
call fcn.00424686
lea ecx, [ebp - 0x10]
call fcn.00424686
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8