Function at 0x401000
Capabilities:
Copy file
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Read .ini file
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x978
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 0x778], bl
call fcn.004083d9
mov edi, 0x100
push edi
call fcn.00409547
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ecx
push edi
push eax
push dword [ebp + 8]
mov dword [0x41386c], eax
call esi
push 1
push dword [0x41386c]
call fcn.0040859a
pop ecx
pop ecx
push edi
call fcn.00409547
pop ecx
mov dword [0x413bb4], eax
push edi
push eax
push dword [ebp + 8]
call esi
push 0x4101a8
push dword [0x413bb4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x413bb4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + ecx - 3]
push eax
call esi
push 0x4000
call fcn.00409547
pop ecx
mov dword [0x413c10], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x578]
mov dword [ebp - 8], 1
push eax
call esi
cmp byte [ebp - 0x578], bl
jne 0x40111d
push dword [0x413bb4]
lea eax, [ebp - 0x278]
push eax
call esi
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.0040859a
pop ecx
lea eax, [ebp - 0x278]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x279]
lea ecx, [ebp - 0x278]
cmp eax, ecx
jbe 0x4010ec
cmp byte [eax], 0x5c
je 0x4010f1
dec eax
jmp 0x4010da
cmp byte [eax], 0x5c
jne 0x4010f2
inc eax
push str.INSTALL.LOG
push eax
call esi
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.0040872e
pop ecx
test eax, eax
pop ecx
jne 0x40111d
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x578]
push eax
call esi
push 2
lea eax, [ebp - 0x578]
push 0x410198
push eax
call fcn.0040d730
add esp, 0xc
test eax, eax
je 0x4011c1
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x678]
push eax
push 0x1a2b
lea eax, [ebp - 0x278]
push 0x410194
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x678]
push 0x410190
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x678]
sub ecx, 3
add eax, ecx
push eax
call esi
lea eax, [ebp - 0x178]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x678]
push ebx
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4011be
lea eax, [ebp - 0x678]
push eax
call fcn.00409437
pop ecx
mov dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push 0x6a
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 5
push 0x68
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 2
push 0x6a
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x6a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadBitmapA]
cmp byte [ebp - 0x578], 0x2f
mov dword [0x413bb8], eax
lea eax, [ebp - 0x578]
mov dword [0x413c00], ebx
mov dword [ebp + 0x10], eax
jne 0x401313
mov esi, dword [ebp + 0x10]
movsx eax, byte [esi + 1]
push eax
call fcn.00409c80
cmp eax, 0x5a
pop ecx
jne 0x401283
cmp byte [esi + 1], 0x7a
jne 0x40126d
mov dword [0x413860], 1
inc esi
inc esi
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x20
jne 0x40130a
inc esi
cmp byte [esi], 0x20
je 0x40127b
jmp 0x4012f9
movsx eax, byte [esi + 1]
push eax
call fcn.00409c80
cmp eax, 0x41
pop ecx
jne 0x40129f
mov dword [0x413c00], 1
jmp 0x4012f7
movsx eax, byte [esi + 1]
push eax
call fcn.00409c80
cmp eax, 0x53
pop ecx
jne 0x4012be
push 1
pop eax
mov dword [0x413834], eax
mov dword [0x413c00], eax
jmp 0x4012f7
movsx eax, byte [esi + 1]
push eax
call fcn.00409c80
cmp eax, 0x52
pop ecx
jne 0x4012da
mov dword [0x41387c], 1
jmp 0x4012f7
movsx eax, byte [esi + 1]
push eax
call fcn.00409c80
cmp eax, 0x55
pop ecx
jne 0x401313
mov esi, dword [ebp + 0x10]
mov dword [0x413b64], 1
inc esi
inc esi
cmp byte [esi], 0x20
mov dword [ebp + 0x10], esi
jne 0x40130a
inc esi
cmp byte [esi], 0x20
je 0x401301
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x2f
je 0x40124a
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0x20
jne 0x401324
inc eax
cmp byte [eax], 0x20
je 0x40131b
mov dword [ebp + 0x10], eax
push 0x20
push eax
call fcn.00409bc0
pop ecx
cmp eax, ebx
pop ecx
je 0x401366
cmp dword [0x413860], ebx
jne 0x401366
mov byte [eax], bl
inc eax
mov dword [0x413bbc], eax
cmp byte [eax], 0x22
jne 0x40134d
inc eax
mov dword [0x413bbc], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x401366
mov ecx, dword [0x413bbc]
add eax, ecx
cmp byte [eax], 0x22
jne 0x401366
mov byte [eax], bl
push dword [0x413bb4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push str.Start_Red
push str.Settings
call esi
push dword [0x413bb4]
mov dword [0x413be0], eax
push ebx
push str.Start_Green
push str.Settings
call esi
push dword [0x413bb4]
mov dword [0x413be4], eax
push 0xff
push str.Start_Blue
push str.Settings
call esi
push dword [0x413bb4]
mov dword [0x413be8], eax
push ebx
push str.End_Red
push str.Settings
call esi
push dword [0x413bb4]
sub eax, dword [0x413be0]
push ebx
push str.End_Green
push str.Settings
mov dword [0x413bec], eax
call esi
push dword [0x413bb4]
sub eax, dword [0x413be4]
push ebx
push str.End_Blue
push str.Settings
mov dword [0x413bf0], eax
call esi
push dword [0x413bb4]
sub eax, dword [0x413be8]
push 1
push str.No_Background
push str.Settings
mov dword [0x413bf4], eax
call esi
mov dword [0x4137f4], eax
call fcn.00408d48
cmp dword [ebp + 0xc], ebx
jne 0x401442
push dword [ebp + 8]
call fcn.00401d70
test eax, eax
pop ecx
je 0x401453
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00401dcf
pop ecx
test eax, eax
pop ecx
jne 0x40145a
xor eax, eax
jmp 0x401d69
cmp dword [0x413860], ebx
je 0x40162b
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x40162b
push ebx
push 0x3e8
push 0x206a
mov dword [0x413ba4], 1
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call esi
test eax, eax
je 0x4014bd
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401498
cmp dword [0x413ba4], ebx
jne 0x401498
push 0x206a
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 0x10]
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x178]
push 0x20
push eax
call fcn.00409bc0
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4014fe
mov byte [esi], bl
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x179], 0x5c
je 0x401522
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x179]
lea ecx, [ebp - 0x178]
cmp eax, ecx
jbe 0x401548
cmp byte [eax], 0x5c
je 0x40154d
dec eax
jmp 0x401536
cmp byte [eax], 0x5c
jne 0x40154f
mov byte [eax], bl
lea eax, [ebp - 0x178]
push ebx
push eax
call fcn.0040729c
pop ecx
cmp esi, ebx
pop ecx
je 0x401584
inc esi
cmp byte [esi], bl
je 0x401584
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
lea eax, [eax + esi - 1]
jne 0x40157b
mov byte [eax], bl
push ebx
push esi
call fcn.0040729c
pop ecx
pop ecx
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call esi
test eax, eax
je 0x4015c0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
jmp 0x40159d
push dword [0x413bb8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x178]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x413c08]
cmp eax, ebx
je 0x401602
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x413840]
cmp eax, ebx
je 0x401612
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x413870]
cmp eax, ebx
je 0x401d66
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x401d66
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.CTL3D32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401688
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Ctl3dRegister
push eax
call esi
push str.Ctl3dUnregister
mov dword [0x413888], eax
push dword [ebp + 0xc]
call esi
push str.Ctl3dAutoSubclass
mov dword [0x413868], eax
push dword [ebp + 0xc]
call esi
push str.Ctl3dSubclassDlgEx
mov dword [0x41381c], eax
push dword [ebp + 0xc]
call esi
mov dword [0x413bb0], eax
mov eax, dword [0x413888]
mov dword [0x413890], 0xffffff
cmp eax, ebx
je 0x4016d8
push dword [ebp + 8]
call eax
test eax, eax
je 0x4016d2
cmp dword [0x4137f0], 1
mov eax, dword [0x413818]
jne 0x4016b6
cmp eax, ebx
jne 0x4016c3
cmp eax, ebx
jne 0x4016c3
push dword [ebp + 8]
call dword [0x41381c]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x413890], eax
jmp 0x4016d8
mov dword [0x413888], ebx
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x378], bl
cmp byte [eax], bl
jne 0x40179b
push 0x4c
lea eax, [ebp - 0x78]
pop esi
push esi
push ebx
push eax
call fcn.00409b50
mov eax, dword [0x4137dc]
add esp, 0xc
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x478]
push edi
push eax
push 1
mov dword [ebp - 0x78], esi
push dword [0x413b90]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], 0x1000
call fcn.00408994
add esp, 0x10
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x477]
push str.install.log
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea eax, [ebp - 0x478]
push str.INSTALL.LOG
mov byte [esi], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x178]
push eax
call esi
lea eax, [ebp - 0x178]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x78]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x4017a9
push dword [ebp - 0x5c]
lea eax, [ebp - 0x378]
push eax
call esi
jmp 0x4017a9
push eax
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.00409547
pop ecx
mov esi, 0x4000
push esi
mov dword [0x413ba0], eax
call fcn.00409547
pop ecx
mov dword [0x4137c8], eax
push esi
push ebx
push eax
call fcn.00409b50
add esp, 0xc
push edi
call fcn.00409547
pop ecx
mov dword [0x413c80], eax
push 0x400
call fcn.00409547
pop ecx
mov dword [0x413864], eax
push edi
call fcn.00409547
pop ecx
mov dword [0x4138b0], eax
push 0x104
call fcn.00409547
pop ecx
mov esi, 0x200
push esi
mov dword [0x413854], eax
call fcn.00409547
pop ecx
mov dword [0x413898], eax
push esi
push ebx
push eax
call fcn.00409b50
add esp, 0xc
mov esi, 0xfa00
push esi
call fcn.00409547
pop ecx
mov dword [0x413814], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x413c0c], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x4137e4], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x413828], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x4137e8], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x4138ac], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x413804], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x4138c0], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x413b84], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x413850], eax
push esi
call fcn.00409547
pop ecx
mov dword [0x41385c], eax
push esi
call fcn.00409547
cmp byte [ebp - 0x378], bl
pop ecx
mov dword [0x413c94], eax
je 0x401a96
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x378]
push eax
call fcn.004034ae
pop ecx
pop ecx
push dword [ebp + 0x10]
test eax, eax
jne 0x401a94
call esi
cmp dword [0x413c00], ebx
mov eax, 0x3e8
je 0x401919
mov dword [0x4137fc], eax
mov byte [0x413b60], 0xb
cmp dword [0x413b64], ebx
je 0x40192d
mov dword [0x4137fc], eax
mov byte [0x413b60], 0xb
cmp dword [0x413834], ebx
jne 0x4019d5
push ebx
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push sym.UNWISE32.EXE__ItemDlg_16
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x4137dc]
push eax
push 0x6a
push dword [0x413b90]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp dword [0x413c00], ebx
mov dword [0x4137d8], eax
jne 0x4019d5
cmp dword [0x413844], ebx
jne 0x401a04
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [0x4137ec], ebx
jne 0x4019d5
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call esi
test eax, eax
je 0x4019cd
lea eax, [ebp - 0x2c]
push eax
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x401994
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401994
cmp dword [0x413844], ebx
je 0x40198c
cmp dword [0x413844], ebx
jne 0x401a04
push 0x4100cc
call fcn.00409ab0
pop ecx
lea eax, [ebp - 0x378]
push eax
call fcn.00405bee
pop ecx
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [0x413820], ebx
je 0x401a79
cmp dword [0x413834], ebx
jne 0x401a8d
lea eax, [ebp - 0x278]
push edi
push eax
push 0x19
push dword [0x413b90]
call fcn.00408994
add esp, 0x10
lea eax, [ebp - 0x978]
push 0x200
push eax
push 0x44
push dword [0x413b90]
call fcn.00408994
add esp, 0x10
xor eax, eax
cmp dword [0x4137f0], ebx
setne al
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x978]
push eax
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x401a79
mov dword [0x413820], ebx
cmp dword [0x413834], ebx
jne 0x401a8d
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.00408f6b
jmp 0x401a96
call esi
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call esi
test eax, eax
je 0x401ad2
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
jmp 0x401aaf
mov eax, dword [0x413868]
cmp eax, ebx
je 0x401ae0
push dword [ebp + 8]
call eax
cmp dword [ebp + 0xc], ebx
je 0x401aee
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x413bb8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call esi
cmp dword [0x413820], ebx
je 0x401c1c
mov eax, dword [0x4137f0]
cmp eax, 1
je 0x401b2d
cmp eax, ebx
jne 0x401c1c
dec eax
push 0x12c
neg eax
sbb eax, eax
add eax, 0x75fa
movzx eax, ax
push eax
push dword [0x413b90]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401c1c
push eax
push dword [0x413b90]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push dword [0x413b90]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401c1c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401c17
lea eax, [ebp - 0x378]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x379], 0x5c
je 0x401bca
lea eax, [ebp - 0x378]
push 0x4100cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x4137f0], ebx
jne 0x401bd9
push str._MSSETUP.EXE
jmp 0x401bde
push str._MSRSTRT.EXE
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x378]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x401c17
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp + 0xc]
call esi
mov eax, dword [0x413c08]
cmp eax, ebx
je 0x401c2c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x413840]
cmp eax, ebx
je 0x401c3c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 8], ebx
je 0x401cb1
lea eax, [ebp - 0x178]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x4137f0], ebx
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
je 0x401c75
lea eax, [ebp - 0x200]
push 0x200
push eax
lea eax, [ebp - 0x178]
push eax
call esi
lea eax, [ebp - 0x178]
push 0x4101a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x178]
sub ecx, 3
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x200]
push 0x200
push eax
lea eax, [ebp - 0x178]
push eax
call esi
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
jne 0x401d25
lea eax, [ebp - 0x478]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x478]
push ebx
push eax
call fcn.0040859a
pop ecx
lea eax, [ebp - 0x778]
pop ecx
push eax
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x178]
push str._s__z__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [0x413b88], ebx
je 0x401d18
lea eax, [ebp - 0x178]
push 5
push eax
call esi
jmp 0x401d25
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004095c9
mov eax, dword [0x413870]
cmp eax, ebx
je 0x401d3a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x413820], ebx
je 0x401d66
mov eax, dword [0x4137f0]
cmp eax, 1
je 0x401d5b
cmp eax, ebx
je 0x401d5b
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x401d66
lea eax, [ebp - 0x378]
push 5
push eax
call esi
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0x10