Function at 0x4012d0
Capabilities:
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp byte [esi], 0
mov dword [ebp - 0x348], esi
jne 0x40130d
pop esi
mov eax, 0x3e9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret 0x10
push 0x41627c
push esi
call fcn.00409f30
add esp, 8
mov dword [ebp - 0x344], eax
test eax, eax
je 0x4013b9
push 0xa
lea ecx, [ebp - 0x344]
add eax, 2
push ecx
push eax
mov dword [ebp - 0x344], eax
call fcn.0040a277
add esp, 0xc
test eax, eax
jne 0x40135f
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x344]
inc ecx
mov dword [ebp - 0x344], ecx
cmp byte [ecx], 0
je 0x401348
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401348
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x234]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4013c3
lea eax, [ebp - 0x234]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013d6
sub eax, edx
cmp byte [ebp + eax - 0x235], 0x5c
push edi
je 0x401402
lea edi, [ebp - 0x234]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4013f1
mov ax, word [0x416278]
mov word [edi], ax
xor eax, eax
jmp 0x401410
mov cl, byte [ebp + eax - 0x234]
mov byte [ebp + eax - 0x338], cl
inc eax
test cl, cl
jne 0x401410
lea eax, [ebp - 0x338]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401430
mov ecx, dword [str.kokundo.lgz]
mov edx, dword [0x416270]
mov dword [eax], ecx
mov ecx, dword [0x416274]
mov dword [eax + 4], edx
lea edx, [ebp - 0x338]
push 0x416268
push edx
mov dword [eax + 8], ecx
call fcn.00403180
add esp, 8
mov dword [ebp - 0x340], eax
mov edi, 1
test eax, eax
jne 0x401477
xor edi, edi
lea eax, [ebp - 0x234]
push eax
push section..text
push 0
push str.KokUndo
push ebx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
lea ecx, [ebp - 0x338]
push ecx
call fcn.00401fd0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x368]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401519
cmp dword [ebp - 0x364], 0x12
je 0x4015f8
lea eax, [ebp - 0x368]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x4014c5
lea ecx, [ebp - 0x368]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x368]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4014c5
test edi, edi
je 0x4015ed
mov ecx, dword [ebp - 0x340]
push 2
lea eax, [ebp - 0x33c]
push eax
push ecx
call fcn.00403970
add esp, 0xc
cmp eax, 2
jne 0x401572
mov ax, word [ebp - 0x33c]
movsx edx, ah
movsx eax, ah
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x34c], edx
mov edx, dword [ebp - 0x340]
push ecx
push edx
call fcn.00403970
mov ecx, dword [ebp - 0x34c]
add esp, 0xc
cmp eax, ecx
je 0x401587
xor edi, edi
push edi
push 0xffff
push 0x14ca
push esi
call ebx
jmp 0x4014c5
cmp byte [ebp - 0x33c], 0
mov byte [ebp + ecx - 0x104], 0
jne 0x4015d5
mov eax, dword [ebp - 0x340]
push eax
call fcn.00403fb0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x33c]
xor edi, edi
push edx
mov dword [ebp - 0x340], edi
call fcn.00402080
add esp, 0xc
push edi
push 0xffff
push 0x14ca
push esi
call ebx
jmp 0x4014c5
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x33c]
push ecx
call fcn.00402080
jmp 0x4014c2
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x4014c5
mov eax, dword [ebp - 0x340]
test eax, eax
je 0x40160b
push eax
call fcn.00403fb0
add esp, 4
cmp dword [ebp - 0x360], 0
je 0x40168a
mov eax, dword [ebp - 0x348]
mov ecx, 0xb
mov esi, str.Operaci_je_mo
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401630
lea edi, [ebp - 0x130]
sub eax, ecx
dec edi
mov esi, ecx
mov edx, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401644
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebx, [ebx]
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x401660
push 0
push 0x41621c
lea eax, [ebp - 0x130]
mov edi, edx
mov dx, word [0x416218]
push eax
push 0
mov word [edi], dx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x360]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fb6
mov esp, ebp
pop ebp
ret 0x10