Function at 0x401000
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Delete registry value
Extract resource via kernel32 functions
Get common file path
Get file attributes
Hash data with crc32
Query or enumerate registry value
Read .ini file
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc4
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 0xac0], bl
mov dword [ebp - 4], ebx
call fcn.0040aa89
mov edi, 0x100
push edi
call fcn.0040bd85
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ecx
push edi
push eax
push dword [ebp + 8]
mov dword [0x417894], eax
call esi
push 1
push dword [0x417894]
call fcn.0040ae88
pop ecx
lea eax, [ebp - 0x64]
pop ecx
mov dword [ebp - 0x64], 1
push eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push edi
mov dword [0x4177f0], eax
call fcn.0040bd85
pop ecx
mov dword [0x417bdc], eax
push edi
push eax
push dword [ebp + 8]
call esi
push 0x41420c
push dword [0x417bdc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x417bdc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + ecx - 3]
push eax
call esi
push 0x4000
call fcn.0040bd85
pop ecx
mov dword [0x417c38], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x5b4]
mov dword [ebp - 0x18], 1
push eax
call esi
cmp byte [ebp - 0x5b4], bl
jne 0x401136
push dword [0x417bdc]
lea eax, [ebp - 0x164]
push eax
call esi
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.0040ae88
pop ecx
lea eax, [ebp - 0x164]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x165]
lea ecx, [ebp - 0x164]
cmp eax, ecx
jbe 0x401105
cmp byte [eax], 0x5c
je 0x40110a
dec eax
jmp 0x4010f3
cmp byte [eax], 0x5c
jne 0x40110b
inc eax
push 0x414200
push eax
call esi
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.0040b027
pop ecx
test eax, eax
pop ecx
jne 0x401136
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x5b4]
push eax
call esi
push 2
lea eax, [ebp - 0x5b4]
push 0x4141fc
push eax
call fcn.00410e90
add esp, 0xc
test eax, eax
je 0x4011da
lea eax, [ebp - 0x164]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x6b4]
push eax
push 0x1a2b
lea eax, [ebp - 0x164]
push 0x4141f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x6b4]
push 0x4141f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x6b4]
sub ecx, 3
add eax, ecx
push eax
call esi
lea eax, [ebp - 0x2b4]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x6b4]
push ebx
push eax
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4011d7
lea eax, [ebp - 0x6b4]
push eax
call fcn.0040bc75
pop ecx
mov dword [ebp - 0x18], 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 - 0x28], 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 - 0x24], 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 - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x6a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadBitmapA]
cmp byte [ebp - 0x5b4], 0x2f
lea esi, [ebp - 0x5b4]
mov dword [0x417be0], eax
mov dword [0x417c24], ebx
mov dword [ebp + 0x10], esi
jne 0x401368
lea eax, [esi + 1]
mov dword [ebp + 0x10], eax
movsx eax, byte [eax]
push eax
call fcn.0040cdb1
cmp eax, 0x5a
mov eax, dword [ebp + 0x10]
pop ecx
jne 0x4012ad
cmp byte [eax], 0x7a
jne 0x40129c
cmp byte [esi + 2], 0x31
jne 0x401292
mov esi, eax
mov dword [0x417828], 1
mov dword [0x417884], 1
inc esi
inc esi
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x20
jne 0x40135c
inc esi
jmp 0x4012a1
movsx eax, byte [eax]
push eax
call fcn.0040cdb1
cmp eax, 0x41
pop ecx
jne 0x4012c8
mov dword [0x417c24], 1
jmp 0x401323
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
push eax
call fcn.0040cdb1
cmp eax, 0x53
pop ecx
jne 0x4012e9
push 1
pop eax
mov dword [0x417840], eax
mov dword [0x417c24], eax
jmp 0x401323
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
push eax
call fcn.0040cdb1
cmp eax, 0x52
pop ecx
jne 0x401307
mov dword [0x4178a8], 1
jmp 0x401323
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
push eax
call fcn.0040cdb1
cmp eax, 0x55
pop ecx
jne 0x401330
mov dword [0x417b84], 1
inc esi
inc esi
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x20
jne 0x40135c
inc esi
jmp 0x401328
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
push eax
call fcn.0040cdb1
cmp eax, 0x57
pop ecx
jne 0x401365
add esi, 2
push esi
call fcn.0040cda6
pop ecx
mov dword [0x4177c4], eax
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x20
je 0x40132d
inc esi
jmp 0x401354
cmp byte [esi], 0x2f
je 0x401263
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x20
jne 0x401376
inc esi
cmp byte [esi], 0x20
je 0x40136d
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x22
jne 0x4013cc
inc esi
push esi
mov dword [ebp + 0x10], esi
call fcn.0040cca0
pop ecx
cmp eax, ebx
jle 0x4013a0
cmp byte [eax + esi], 0x22
je 0x401393
dec eax
jmp 0x401386
add eax, esi
lea ecx, [eax + 1]
mov dword [0x417be4], ecx
mov byte [eax], bl
mov eax, dword [0x417be4]
cmp byte [eax], 0x20
jne 0x4013b2
inc eax
mov dword [0x417be4], eax
jmp 0x4013a5
push eax
call fcn.0040cca0
test eax, eax
pop ecx
jne 0x4013c3
mov dword [0x417be4], ebx
push ebx
push esi
call fcn.0040ae88
pop ecx
pop ecx
push 0x20
push esi
call fcn.0040c3d7
pop ecx
cmp eax, ebx
pop ecx
je 0x40140e
cmp dword [0x417884], ebx
jne 0x40140e
mov byte [eax], bl
inc eax
mov dword [0x417be4], eax
cmp byte [eax], 0x22
jne 0x4013f5
inc eax
mov dword [0x417be4], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x40140e
mov ecx, dword [0x417be4]
add eax, ecx
cmp byte [eax], 0x22
jne 0x40140e
mov byte [eax], bl
cmp dword [0x4177c4], ebx
je 0x401647
lea eax, [ebp - 0xbc4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xbc4]
push 1
push eax
call fcn.0040ae88
lea eax, [ebp - 0xbc4]
push eax
lea eax, [ebp - 0x9c0]
push 0x4141b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp byte [ebp - 0x988], bl
lea eax, [ebp - 0x988]
je 0x40146d
cmp byte [eax], 0x5c
jne 0x401468
mov byte [eax], 0x2f
inc eax
cmp byte [eax], bl
jne 0x401460
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x9c0]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401817
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x8bc]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4017d1
push 1
pop esi
cmp dword [ebp - 0x10], esi
jne 0x401594
lea eax, [ebp - 0x8bc]
push eax
call fcn.0040cda6
cmp byte [ebp - 0x8bc], bl
pop ecx
mov dword [ebp - 0x48], eax
lea esi, [ebp - 0x8bc]
je 0x40151c
cmp dword [0x41520c], 1
jle 0x401504
movsx eax, byte [esi]
push 4
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x401513
movsx eax, byte [esi]
mov ecx, dword [0x415000]
mov al, byte [ecx + eax*2]
and eax, 4
cmp eax, ebx
je 0x40151c
inc esi
cmp byte [esi], bl
jne 0x4014ec
cmp byte [esi], 0x5c
jne 0x401522
inc esi
lea ecx, [ebp - 0x168]
mov al, byte [esi]
cmp al, bl
je 0x40153d
cmp al, 0x5c
jne 0x401537
cmp byte [esi + 1], al
je 0x40153d
mov byte [ecx], al
inc ecx
inc esi
jmp 0x401528
cmp byte [esi], 0x5c
jne 0x4015af
cmp byte [esi + 1], 0x5c
jne 0x4015af
lea eax, [ebp - 0x1c]
add esi, 2
push eax
push 0x20019
lea eax, [ebp - 0x168]
push ebx
push eax
mov eax, dword [ebp - 0x48]
mov byte [ecx], bl
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40158b
cmp byte [esi], bl
je 0x4015af
push ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4015af
mov dword [ebp - 0x14], 1
jmp 0x4015af
cmp dword [ebp - 0x10], 4
jne 0x4015af
lea eax, [ebp - 0x8bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4015af
mov dword [ebp - 0x14], esi
inc dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x8bc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
mov dword [ebp - 8], 0x208
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c2
cmp dword [ebp - 0x14], ebx
je 0x4017d1
lea eax, [ebp - 0x164]
push edi
push eax
push 0x4a
push dword [0x417bb0]
call fcn.0040b2b1
lea eax, [ebp - 0xdc4]
push 0x200
push eax
push 0x51
push dword [0x417bb0]
call fcn.0040b2b1
add esp, 0x20
lea eax, [ebp - 0x164]
push 3
push eax
lea eax, [ebp - 0xdc4]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp al, 6
jne 0x401770
push 1
pop eax
mov dword [0x417c24], eax
mov dword [0x417b84], eax
push dword [0x417bdc]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 0x4141ac
push 0x4141a0
call esi
push dword [0x417bdc]
mov dword [0x417c00], eax
push ebx
push 0x414194
push 0x4141a0
call esi
push dword [0x417bdc]
mov dword [0x417c04], eax
push 0xff
push 0x414188
push 0x4141a0
call esi
push dword [0x417bdc]
mov dword [0x417c08], eax
push ebx
push 0x414180
push 0x4141a0
call esi
push dword [0x417bdc]
sub eax, dword [0x417c00]
push ebx
push 0x414174
push 0x4141a0
mov dword [0x417c0c], eax
call esi
push dword [0x417bdc]
sub eax, dword [0x417c04]
push ebx
push 0x414168
push 0x4141a0
mov dword [0x417c10], eax
call esi
push dword [0x417bdc]
sub eax, dword [0x417c08]
push 1
push 0x414158
push 0x4141a0
mov dword [0x417c14], eax
call esi
mov dword [0x4177e0], eax
call fcn.0040b681
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [0x4178b8]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
cmp eax, ebx
mov dword [0x4178c0], 0xffffff
je 0x4017eb
push dword [ebp + 8]
call eax
test eax, eax
je 0x4017e5
cmp dword [0x4177dc], 1
mov eax, dword [0x417820]
jne 0x401758
cmp eax, ebx
jne 0x401765
cmp eax, ebx
jne 0x401765
push dword [ebp + 8]
call dword [0x417824]
push 0xf
call esi
mov dword [0x4178c0], eax
jmp 0x4017eb
cmp al, 7
je 0x4017d1
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x8bc]
push eax
push ebx
push dword [ebp - 4]
mov edi, 0x208
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4017d1
lea eax, [ebp - 0x8bc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x8bc]
mov dword [ebp - 8], edi
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
test eax, eax
je 0x40179b
jmp 0x401774
push dword [ebp - 4]
call fcn.0040c587
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401817
mov dword [0x4178b8], ebx
push 0xf
call esi
cmp dword [ebp + 0xc], ebx
mov dword [0x4178c0], eax
jne 0x401806
push dword [ebp + 8]
call fcn.00402429
test eax, eax
pop ecx
je 0x401817
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00402488
pop ecx
test eax, eax
pop ecx
jne 0x40181e
xor eax, eax
jmp 0x402422
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x417850], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x417810], eax
push 1
mov dword [eax], ebx
pop eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x401855
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x401857
shr ecx, 1
dec edx
jne 0x401846
mov edx, dword [0x417810]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, edi
jl 0x401841
push edi
call fcn.0040bd85
push edi
mov dword [0x417bbc], eax
call fcn.0040bd85
push edi
mov dword [0x41789c], eax
push dword [0x417bbc]
push 0x19
push dword [0x417bb0]
call fcn.0040b2b1
push edi
push dword [0x41789c]
push 0x3b
push dword [0x417bb0]
call fcn.0040b2b1
mov esi, 0x104
push esi
call fcn.0040bd85
mov dword [0x417c20], eax
add esp, 0x2c
mov byte [eax], bl
lea eax, [ebp + 0xc]
push eax
push 0x20019
push ebx
push 0x41412c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401925
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], esi
push eax
lea eax, [ebp - 0x4c]
push dword [0x417c20]
push eax
push ebx
push 0x41411c
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [0x417c20]
jne 0x40191a
cmp byte [eax], bl
je 0x40191c
push eax
call fcn.0040bc53
cmp eax, dword [0x417c20]
pop ecx
jbe 0x40191c
mov byte [eax - 1], bl
jmp 0x40191c
mov byte [eax], bl
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x417884], ebx
je 0x401af7
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x401af7
push ebx
push 0x3e8
push 0x206a
mov dword [0x417bcc], 1
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call esi
test eax, eax
je 0x401988
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401963
cmp dword [0x417bcc], ebx
jne 0x401963
push 0x206a
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 0x10]
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x2b4]
push 0x20
push eax
call fcn.0040c3d7
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4019c9
mov byte [esi], bl
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x2b5], 0x5c
je 0x4019ed
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x2b5]
lea ecx, [ebp - 0x2b4]
cmp eax, ecx
jbe 0x401a13
cmp byte [eax], 0x5c
je 0x401a18
dec eax
jmp 0x401a01
cmp byte [eax], 0x5c
jne 0x401a1a
mov byte [eax], bl
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.00409855
pop ecx
cmp esi, ebx
pop ecx
je 0x401a4f
inc esi
cmp byte [esi], bl
je 0x401a4f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
lea eax, [eax + esi - 1]
jne 0x401a46
mov byte [eax], bl
push ebx
push esi
call fcn.00409855
pop ecx
pop ecx
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call esi
test eax, eax
je 0x401a8b
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
jmp 0x401a68
push dword [0x417be0]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x2b4]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x417c30]
cmp eax, ebx
je 0x401acd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x417898]
cmp eax, ebx
je 0x401add
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x417828], ebx
je 0x40241f
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40241f
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x3b4], bl
cmp byte [eax], bl
jne 0x401bda
push 0x4c
lea eax, [ebp - 0x1b4]
pop esi
push esi
push ebx
push eax
call fcn.0040cbd0
mov eax, dword [0x4177c0]
push edi
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x4b4]
push eax
push 1
push dword [0x417bb0]
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x194], edi
mov dword [ebp - 0x180], 0x1000
call fcn.0040b2b1
add esp, 0x1c
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + eax - 0x4b3]
push 0x414110
push eax
mov dword [ebp + 0x10], eax
call esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x10]
push 0x414200
mov byte [eax + ecx + 1], bl
lea eax, [ebp - 0x4b4]
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x2b4]
push eax
call esi
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x198], eax
call fcn.0040c2c0
lea eax, [ebp - 0x1b4]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x401bec
push dword [ebp - 0x198]
lea eax, [ebp - 0x3b4]
push eax
jmp 0x401bea
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x3b4]
push eax
call esi
cmp byte [ebp - 0x3b4], bl
je 0x401c64
lea eax, [ebp - 0x3b4]
push 0x5c
push eax
call fcn.0040c3d7
pop ecx
test eax, eax
pop ecx
jne 0x401c64
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.0040cab4
pop ecx
lea eax, [ebp - 0x164]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x165], 0x5c
je 0x401c40
lea eax, [ebp - 0x164]
push 0x41410c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x3b4]
push eax
call esi
push edi
call fcn.0040bd85
mov esi, 0x4000
mov dword [0x417bc8], eax
push esi
call fcn.0040bd85
push esi
push ebx
push eax
mov dword [0x4177a8], eax
call fcn.0040cbd0
push edi
call fcn.0040bd85
push 0x400
mov dword [0x417ca0], eax
call fcn.0040bd85
push edi
mov dword [0x41788c], eax
call fcn.0040bd85
push 0x104
mov dword [0x4178e8], eax
call fcn.0040bd85
mov esi, 0x200
mov dword [0x417870], eax
push esi
call fcn.0040bd85
push esi
push ebx
push eax
mov dword [0x4178c8], eax
call fcn.0040cbd0
push 0x2ee00
call fcn.0040bd85
mov esi, 0xfa00
mov dword [0x417818], eax
push esi
call fcn.0040bd85
push esi
mov dword [0x417c34], eax
call fcn.0040bd85
add esp, 0x40
mov dword [0x417834], eax
push esi
call fcn.0040bd85
push esi
mov dword [0x4177cc], eax
call fcn.0040bd85
push esi
mov dword [0x417830], eax
call fcn.0040bd85
push esi
mov dword [0x4177d4], eax
call fcn.0040bd85
push esi
mov dword [0x4178e0], eax
call fcn.0040bd85
push esi
mov dword [0x4177fc], eax
call fcn.0040bd85
push esi
mov dword [0x4178f8], eax
call fcn.0040bd85
push esi
mov dword [0x417ba4], eax
call fcn.0040bd85
push esi
mov dword [0x41787c], eax
call fcn.0040bd85
push esi
mov dword [0x41786c], eax
call fcn.0040bd85
push esi
mov dword [0x417880], eax
call fcn.0040bd85
push 0x1000
mov dword [0x417cb8], eax
call fcn.0040bd85
add esp, 0x30
cmp byte [ebp - 0x3b4], bl
mov dword [0x4177d0], eax
je 0x402072
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 - 0xac0]
push eax
lea eax, [ebp - 0x3b4]
push eax
call fcn.004042a3
pop ecx
pop ecx
push dword [ebp + 0x10]
test eax, eax
jne 0x402070
call esi
cmp dword [0x417c24], ebx
mov ecx, 0x3e8
je 0x401deb
mov dword [0x4177f4], ecx
mov byte [0x417b80], 0xb
cmp dword [0x417b84], ebx
mov eax, dword [0x4177c4]
je 0x401e10
mov edx, eax
mov byte [0x417b80], 0xb
neg edx
sbb edx, edx
and edx, 9
add edx, ecx
mov dword [0x4177f4], edx
cmp dword [0x417840], ebx
jne 0x401ec5
cmp eax, ebx
jne 0x401e25
call fcn.0040c2c0
push ebx
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push sym.UNWISE32.EXE__ItemDlg_16
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x4177c0]
push eax
push 0x6a
push dword [0x417bb0]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp dword [0x417c24], ebx
mov dword [0x4177b8], eax
jne 0x401ec5
cmp dword [0x41785c], ebx
jne 0x401fe3
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [0x4177d8], ebx
jne 0x401ec5
push 1
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call esi
test eax, eax
je 0x401ebd
lea eax, [ebp - 0x44]
push eax
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x401e84
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401e84
cmp dword [0x41785c], ebx
je 0x401e7c
cmp dword [0x41785c], ebx
jne 0x401fe3
push 0x41410c
call fcn.0040ca2e
xor esi, esi
cmp dword [0x41781c], ebx
pop ecx
mov dword [ebp + 0x10], ebx
je 0x401f57
push 0x414104
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401f57
push 0x4140f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x401f57
push dword [0x417bc8]
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xb4], 0x64
mov dword [ebp - 0xb0], ebx
push 0x4140e0
push eax
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb4]
push eax
call esi
test eax, eax
jne 0x401f57
xor esi, esi
cmp dword [0x4177f4], 0x3f1
je 0x401f82
cmp dword [0x4177c4], ebx
je 0x401f73
cmp dword [0x417864], ebx
jne 0x401f82
lea eax, [ebp - 0x3b4]
push eax
call fcn.00408237
pop ecx
jmp 0x401f87
call fcn.004071a4
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp esi, ebx
je 0x401fd5
cmp dword [0x41785c], ebx
mov dword [ebp - 0xb4], 0x65
je 0x401fb6
mov dword [ebp - 0xb0], 0xd
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb4]
push eax
call esi
cmp dword [ebp + 0x10], ebx
je 0x401fe3
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x417828], ebx
je 0x402055
cmp dword [0x417840], ebx
jne 0x402069
lea eax, [ebp - 0x164]
push edi
push eax
push 0x19
push dword [0x417bb0]
call fcn.0040b2b1
lea eax, [ebp - 0xdc4]
push 0x200
push eax
push 0x44
push dword [0x417bb0]
call fcn.0040b2b1
add esp, 0x20
xor eax, eax
cmp dword [0x4177dc], ebx
setne al
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0xdc4]
push eax
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x402055
mov dword [0x417828], ebx
cmp dword [0x417840], ebx
jne 0x402069
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.0040b740
jmp 0x402072
call esi
mov eax, dword [0x4177bc]
cmp eax, ebx
je 0x402082
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call esi
test eax, eax
je 0x4020be
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
jmp 0x40209b
mov eax, dword [0x417890]
cmp eax, ebx
je 0x4020cc
push dword [ebp + 8]
call eax
cmp dword [0x417cac], ebx
je 0x4020fa
lea eax, [ebp - 0x2b4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x2b4]
push ebx
push eax
push 0x2001
push 0x1000
call dword [0x417cac]
mov eax, dword [0x417874]
cmp eax, ebx
je 0x40210a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x417be0]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x28]
call esi
mov eax, dword [0x417850]
cmp eax, ebx
je 0x402147
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x417850]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x417828], ebx
je 0x40225d
mov eax, dword [0x4177dc]
cmp eax, 1
je 0x402210
cmp eax, ebx
jne 0x40225d
mov eax, 0x75f9
movzx eax, ax
push 0x12c
push eax
push dword [0x417bb0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40225d
push eax
push dword [0x417bb0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push dword [0x417bb0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40225d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x402258
lea eax, [ebp - 0x3b4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x3b5], 0x5c
je 0x402201
lea eax, [ebp - 0x3b4]
push 0x41410c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x4177dc], ebx
jne 0x40221a
push 0x4140d0
jmp 0x40221f
mov eax, 0x75fa
jmp 0x40216e
push 0x4140c0
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x3b4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x402258
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
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 [0x417c30]
cmp eax, ebx
je 0x40226d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x417888]
cmp eax, ebx
je 0x40227d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
je 0x402306
cmp dword [0x41785c], ebx
jne 0x4023a1
lea eax, [ebp - 0x2b4]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x4177dc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_OpenFile]
je 0x4022c8
lea eax, [ebp - 0xec]
push 0x200
push eax
lea eax, [ebp - 0x2b4]
push eax
call edi
lea eax, [ebp - 0x2b4]
push 0x41420c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x2b4]
sub ecx, 3
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xec]
push 0x200
push eax
lea eax, [ebp - 0x2b4]
push eax
call edi
jmp 0x4023a1
lea eax, [ebp - 0x4b4]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x4b4]
push ebx
push eax
call fcn.0040ae88
cmp dword [0x417828], ebx
pop ecx
pop ecx
mov byte [ebp + 8], bl
je 0x402349
cmp dword [0x4177dc], 2
jne 0x402349
lea eax, [ebp + 8]
push 0x4140bc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xac0]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x6b4]
push eax
lea eax, [ebp - 0x2b4]
push 0x4140ac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp dword [0x417ba8], ebx
je 0x402394
cmp dword [0x41785c], ebx
jne 0x402394
lea eax, [ebp - 0x2b4]
push 5
push eax
call esi
jmp 0x4023a1
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040be0e
mov eax, dword [0x417898]
cmp eax, ebx
je 0x4023b6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x417828], ebx
je 0x4023f7
mov eax, dword [0x4177dc]
cmp eax, 1
je 0x4023ec
cmp eax, ebx
je 0x4023ec
cmp dword [ebp - 0x18], ebx
jne 0x4023f7
cmp dword [0x417ba8], ebx
je 0x4023e1
cmp dword [0x41785c], ebx
je 0x4023f7
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4023f7
lea eax, [ebp - 0x3b4]
push 5
push eax
call esi
cmp dword [0x4177c4], ebx
je 0x402408
push dword [ebp - 4]
call fcn.0040c587
pop ecx
cmp dword [ebp - 4], ebx
je 0x402416
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
pop ebx
leave
ret 0x10