Function at 0x401552
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Resolve function by parsing pe exports
Set current directory
Set file attributes
Set registry value

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x467558]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2ec]
xor ebp, ebp
push edi
push 7
pop ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x18], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
mov eax, section..ndata
mov edx, dword [esp + 0x34]
mov edi, ecx
shl edi, 0xe
mov esi, edx
add edi, eax
shl esi, 0xe
add esi, eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x14], edi
mov dword [0x40c0e4], eax
mov ebx, ebp
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
cmp eax, 0x45
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], esi
ja case.0x4015c7.52
mov ecx, dword [esp + 0x20]
jmp dword [ecx*4 + 0x403372]
mov ecx, dword [esp + 0x1c]
push ecx
push str.Jump:__d
call fcn.00406f3c
mov eax, dword [esp + 0x38]
pop ecx
pop ecx
jmp 0x403363
push ebp
call fcn.004034fe
push eax
push str.Aborting:___s_
call fcn.00406f3c
pop ecx
pop ecx
push ebp
push dword [esp + 0x34]
call fcn.0040643d
mov eax, 0x7fffffff
jmp 0x403363
inc dword [0x46754c]
test eax, eax
je 0x401605
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401605
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004035bd
lea esi, [eax - 1]
push esi
push str.Call:__d
call fcn.00406f3c
pop ecx
pop ecx
push ebp
push esi
call fcn.00401398
jmp 0x403363
push ebp
call fcn.004034fe
push eax
push str.DetailPrint:__s
call fcn.00406f3c
pop ecx
pop ecx
push ebp
push dword [esp + 0x34]
call fcn.0040643d
jmp case.0x4015c7.52
push ebp
call fcn.004034c2
mov esi, eax
push esi
push str.Sleep__d_
call fcn.00406f3c
xor eax, eax
add esp, 0xc
inc eax
cmp esi, eax
cmovg eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015c7.52
push str.BringToFront
call fcn.00406f3c
mov eax, dword [esp + 0x1c]
pop ecx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015c7.52
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
test eax, eax
jg 0x4016f2
mov eax, dword [ecx*4 + 0x46f620]
jns 0x4016cb
mov dword [0x4200e8], eax
jmp 0x4016d2
mov dword [ecx*4 + 0x46f5e0], eax
push 1
call fcn.004034c2
mov ecx, eax
mov eax, dword [esp + 0x34]
push ecx
push eax
push str.SetFlag:__d_d
mov dword [eax*4 + 0x46f620], ecx
jmp 0x40237d
mov eax, dword [ecx*4 + 0x46f5e0]
mov dword [ecx*4 + 0x46f620], eax
cmp dword [esp + 0x3c], ebx
jge case.0x4015c7.52
mov eax, dword [0x4200e8]
mov dword [ecx*4 + 0x46f620], eax
jmp case.0x4015c7.52
mov ecx, dword [esp + 0x38]
push 4
mov edx, dword [ecx*4 + 0x46f620]
mov eax, edx
and eax, dword [esp + 0x40]
mov dword [ecx*4 + 0x46f620], eax
xor eax, eax
test edx, edx
pop ecx
cmove eax, ecx
mov eax, dword [esp + eax + 0x30]
jmp 0x403363
push dword [edx*4 + 0x46f620]
push edi
call fcn.00406ea5
jmp case.0x4015c7.52
mov eax, dword [0x467544]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x401773
push edx
push eax
call esi
mov ecx, dword [esp + 0x30]
mov eax, dword [0x467548]
test eax, eax
je case.0x4015c7.52
push ecx
push eax
call esi
jmp case.0x4015c7.52
push 0xfffffffffffffff0
call fcn.004034fe
push dword [esp + 0x34]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.00406f3c
add esp, 0xc
push dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015c7.52
xor ebx, ebx
inc ebx
push 0x4093ac
call fcn.00406f3c
pop ecx
jmp case.0x4015c7.52
push 0xfffffffffffffff0
call fcn.004034fe
push dword [esp + 0x34]
mov esi, eax
push esi
push str.CreateDirectory:___s____d_
call fcn.00406f3c
add esp, 0xc
push esi
call fcn.00407573
mov edi, eax
test edi, edi
je 0x40187b
push 0x5c
push edi
call fcn.00406e7c
mov edi, eax
xor eax, eax
movzx ebp, word [edi]
mov word [edi], ax
test bp, bp
jne 0x401823
cmp dword [esp + 0x38], eax
je 0x401823
call fcn.00406bea
test eax, eax
je 0x401823
push esi
call fcn.00406541
jmp 0x401829
push esi
call fcn.00406521
test eax, eax
je 0x40185f
cmp eax, 0xb7
je 0x401846
push eax
push esi
push 0x4093f8
call fcn.00406f3c
add esp, 0xc
inc ebx
jmp 0x40186c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40186c
push esi
push str.CreateDirectory:
call fcn.00406f3c
inc ebx
jmp 0x40186a
push esi
push str.CreateDirectory:___s_
call fcn.00406f3c
pop ecx
pop ecx
mov word [edi], bp
add edi, 2
test bp, bp
jne 0x4017f5
cmp dword [esp + 0x34], 0
push 0x4100e8
je 0x4018c2
push 0xffffffffffffffe6
call fcn.0040643d
push esi
push 0x4c8000
call fcn.004074c9
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4015c7.52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SetCurrentDirectory__s_
call fcn.00406f3c
add esp, 0xc
jmp 0x401a3a
push 0xfffffffffffffff5
jmp 0x401660
push ebp
call fcn.004034fe
mov esi, eax
push esi
call fcn.00406e55
test eax, eax
je 0x4018f6
push dword [esp + 0x34]
push esi
push 0x409500
call fcn.00406f3c
add esp, 0xc
mov eax, dword [esp + 0x34]
jmp 0x403363
push dword [esp + 0x38]
push esi
push str.IfFileExists:
call fcn.00406f3c
add esp, 0xc
mov eax, dword [esp + 0x38]
jmp 0x403363
push 0xffffffffffffffd0
call fcn.004034fe
push 0xffffffffffffffdf
mov edi, eax
call fcn.004034fe
push 0x13
mov ebp, eax
call fcn.004034fe
mov esi, eax
push esi
push str.Rename:__s
call fcn.00406f3c
pop ecx
pop ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401951
push 0x4100e8
push 0xffffffffffffffe3
jmp 0x401660
cmp dword [esp + 0x38], ebx
je 0x40197c
push edi
call fcn.00406e55
test eax, eax
je 0x40197c
push ebp
push edi
call fcn.0040692b
push 0x4100e8
push 0xffffffffffffffe4
call fcn.0040643d
push esi
push 0x40959c
jmp 0x401985
push esi
push str.T_rT1Y_
xor ebx, ebx
inc ebx
call fcn.00406f3c
pop ecx
jmp 0x4017c4
push ebp
call fcn.004034fe
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x4019d4
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x4019dc
cmp word [eax], bp
je 0x4019dc
push edi
call fcn.00406e55
test eax, eax
je 0x4019d4
add eax, 0x2c
push eax
push dword [esp + 0x18]
call fcn.004074c9
jmp 0x4019dc
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
cmp dword [esp + 0x38], ebp
jne case.0x4015c7.52
push 0x2000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x4015c7.52
push 0xffffffffffffffff
call fcn.004034fe
lea ecx, [esp + 0x50]
push ecx
push edi
push 0x2000
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4015c7.52
xor ebx, ebx
inc ebx
xor eax, eax
mov word [edi], ax
jmp case.0x4015c7.52
push 0xffffffffffffffef
call fcn.004034fe
push eax
push edi
call fcn.00407405
neg eax
sbb ebx, ebx
inc ebx
jmp case.0x4015c7.52
push 0x31
call fcn.004034fe
mov ecx, dword [esp + 0x30]
mov esi, eax
mov eax, ecx
mov dword [esp + 0x14], esi
sar ecx, 3
and eax, 7
push esi
and ecx, 2
mov dword [esp + 0x1c], eax
push ecx
push eax
push 0x4095c8
call fcn.00406f3c
add esp, 0x10
push esi
call fcn.004077af
mov edi, 0x40c0e8
push esi
test eax, eax
je 0x401a88
push edi
call fcn.004074c9
jmp 0x401a9f
push 0x4c8000
push edi
call fcn.004074c9
push eax
call fcn.00406ddc
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.004076eb
xor esi, esi
inc esi
mov eax, dword [esp + 0x18]
cmp eax, 3
jl 0x401ae5
push edi
call fcn.00406e55
mov ecx, ebp
test eax, eax
je 0x401ace
lea ecx, [esp + 0x3c]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x401aef
push edi
call fcn.0040754b
xor eax, eax
cmp dword [esp + 0x18], esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.004072ca
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401be1
cmp dword [esp + 0x18], ebx
jne 0x401bb5
push edi
push 0x409644
call fcn.00406f3c
pop ecx
pop ecx
push section..ndata
push 0x4140e8
call fcn.004074c9
push edi
push section..ndata
call fcn.004074c9
push dword [esp + 0x44]
push 0x4100e8
call fcn.0040659c
push 0x4140e8
push section..ndata
call fcn.004074c9
mov eax, dword [esp + 0x30]
sar eax, 3
push eax
push 0x4100e8
call fcn.00407457
sub eax, 4
jne 0x401b87
push 0x409664
call fcn.00406f3c
pop ecx
jmp 0x401aa8
sub eax, 1
je 0x401b9f
push 0x40969c
call fcn.00406f3c
pop ecx
push edi
push 0xfffffffffffffffa
jmp 0x401600
push 0x409680
call fcn.00406f3c
inc dword [0x46f628]
pop ecx
jmp 0x403361
mov esi, dword [esp + 0x14]
push esi
push 0xffffffffffffffe2
call fcn.0040643d
mov ebp, dword [esp + 0x18]
push ebp
push edi
push 0x409610
call fcn.00406f3c
add esp, 0xc
xor ebx, ebx
cmp ebp, 2
sete bl
jmp case.0x4015c7.52
mov esi, dword [esp + 0x14]
push esi
push 0xffffffffffffffea
call fcn.0040643d
inc dword [0x46f654]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.00403787
dec dword [0x46f654]
push edi
push eax
push str.File:
mov dword [esp + 0x2c], eax
call fcn.00406f3c
add esp, 0xc
cmp dword [esp + 0x3c], 0xffffffff
jne 0x401c29
cmp dword [esp + 0x40], 0xffffffff
je 0x401c3a
lea eax, [esp + 0x3c]
push eax
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
test eax, eax
jns case.0x4015c7.52
cmp eax, 0xfffffffe
jne 0x401c66
push 0xffffffffffffffe9
push edi
call fcn.0040659c
push esi
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401c6e
push 0xffffffffffffffee
push edi
call fcn.0040659c
push edi
push 0x4096e0
call fcn.00406f3c
pop ecx
pop ecx
push 0x200010
push edi
call fcn.00407457
jmp 0x401605
push ebp
call fcn.004034fe
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00406f3c
pop ecx
pop ecx
push dword [esp + 0x34]
push esi
call fcn.0040706e
jmp case.0x4015c7.52
push 0x31
call fcn.004034fe
mov esi, eax
push esi
push dword [esp + 0x34]
push str.MessageBox:__d___s_
call fcn.00406f3c
add esp, 0xc
push dword [esp + 0x30]
push esi
call fcn.00407457
test eax, eax
je 0x401f8c
cmp eax, dword [esp + 0x38]
je 0x401e41
cmp eax, dword [esp + 0x40]
jne case.0x4015c7.52
mov eax, dword [esp + 0x44]
jmp 0x403363
push 0xfffffffffffffff0
call fcn.004034fe
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x401c99
push 1
call fcn.004034fe
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x40174d
push 2
call fcn.004034c2
push 3
mov ebp, eax
mov esi, edx
call fcn.004034c2
pop ecx
pop ecx
push 1
mov dword [esp + 0x24], eax
call fcn.004034fe
push eax
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_lstrlenW
mov ecx, eax
xor eax, eax
test esi, esi
mov word [edi], ax
cmove ebp, ecx
test ebp, ebp
je case.0x4015c7.52
mov eax, dword [esp + 0x20]
test eax, eax
jns 0x401d6a
add eax, ecx
js case.0x4015c7.52
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
push eax
push edi
call fcn.004074c9
test ebp, ebp
jns 0x401d89
push edi
call sub.KERNEL32.dll_lstrlenW
add ebp, eax
xor eax, eax
test ebp, ebp
cmovns eax, ebp
cmp eax, 0x2000
jge case.0x4015c7.52
xor ecx, ecx
mov word [edi + eax*2], cx
jmp case.0x4015c7.52
push 0x20
call fcn.004034fe
push 0x31
mov esi, eax
call fcn.004034fe
push eax
push esi
cmp dword [esp + 0x48], ebx
jne 0x401dce
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401908
jmp 0x401e41
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401dc4
xor ebp, ebp
inc ebp
push ebp
call fcn.004034fe
push 0x2000
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401e04
cmp dword [esp + 0x38], ebx
je 0x401e0b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401e0b
xor eax, eax
mov ebx, ebp
mov word [edi], ax
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp case.0x4015c7.52
mov esi, dword [esp + 0x44]
push ebp
call fcn.004034c2
push 1
mov edi, eax
call fcn.004034c2
pop ecx
pop ecx
test esi, esi
jne 0x401e3d
cmp edi, eax
jl 0x401e41
jg 0x401e50
jmp 0x401908
cmp edi, eax
jae 0x401e4a
mov eax, dword [esp + 0x3c]
jmp 0x403363
jbe 0x401908
mov eax, dword [esp + 0x40]
jmp 0x403363
push 1
call fcn.004034c2
push 2
mov esi, eax
call fcn.004034c2
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, 0xd
ja case.default.0x401e76
jmp dword [eax*4 + 0x40348a]
add esi, ecx
jmp case.default.0x401e76
sub esi, ecx
jmp case.default.0x401e76
imul esi, ecx
jmp case.default.0x401e76
test ecx, ecx
je 0x401e97
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401e99
mov esi, ebp
xor ebx, ebx
test ecx, ecx
sete bl
jmp case.default.0x401e76
or esi, ecx
jmp case.default.0x401e76
and esi, ecx
jmp case.default.0x401e76
xor esi, ecx
jmp case.default.0x401e76
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401e76
test esi, esi
jne 0x401ec1
test ecx, ecx
je 0x401eca
xor esi, esi
inc esi
jmp case.default.0x401e76
test esi, esi
jne 0x401ebd
mov esi, ebp
jmp case.default.0x401e76
test ecx, ecx
je 0x401e97
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401e99
shl esi, cl
jmp case.default.0x401e76
sar esi, cl
jmp case.default.0x401e76
shr esi, cl
push esi
jmp 0x40174d
push 1
call fcn.004034fe
push 2
mov esi, eax
call fcn.004034c2
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x4015c7.52
mov eax, dword [esp + 0x38]
mov esi, dword [0x40c0e0]
test eax, eax
je 0x401f79
dec eax
test esi, esi
je 0x401f56
mov esi, dword [esi]
test eax, eax
jne 0x401f1a
test esi, esi
je 0x401f56
add esi, 4
mov edi, 0x40c0e8
push esi
push edi
call fcn.004074c9
mov eax, dword [0x40c0e0]
add eax, 4
push eax
push esi
call fcn.004074c9
mov eax, dword [0x40c0e0]
push edi
add eax, 4
push eax
jmp 0x402ff0
push dword [esp + 0x38]
push str.Exch:
call fcn.00406f3c
pop ecx
pop ecx
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.0040659c
push eax
jmp 0x401c81
test edx, edx
je 0x401fab
test esi, esi
jne 0x401f94
push str.Pop:
call fcn.00406f3c
pop ecx
xor ebx, ebx
inc ebx
jmp case.0x4015c7.52
lea eax, [esi + 4]
push eax
push edi
call fcn.004074c9
mov eax, dword [esi]
mov dword [0x40c0e0], eax
push esi
jmp 0x4024d7
push 0x4004
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x30]
mov esi, eax
lea ecx, [esi + 4]
push ecx
call fcn.0040659c
mov ecx, dword [0x40c0e0]
mov dword [esi], ecx
mov dword [0x40c0e0], esi
jmp case.0x4015c7.52
push 3
call fcn.004034c2
push 4
mov dword [esp + 0x2c], eax
call fcn.004034c2
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], esi
pop ecx
pop ecx
test al, 1
je 0x40200b
push 0x33
call fcn.004034fe
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
test al, 2
je 0x40201c
push 0x44
call fcn.004034fe
mov esi, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], 0x12
push 1
jne 0x402076
call fcn.004034c2
push 2
mov dword [esp + 0x1c], eax
call fcn.004034c2
pop ecx
pop ecx
mov ecx, dword [esp + 0x44]
sar ecx, 2
test ecx, ecx
je 0x402064
lea edx, [esp + 0x10]
push edx
push ecx
push ebp
push esi
push dword [esp + 0x34]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb ebx, ebx
mov eax, dword [esp + 0x10]
inc ebx
jmp 0x4020a8
push esi
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4020a4
call fcn.004034fe
push 0x12
mov esi, eax
call fcn.004034fe
xor ecx, ecx
cmp word [eax], bp
cmovne ecx, eax
push ecx
xor ecx, ecx
cmp word [esi], bp
cmovne ecx, esi
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x30], ebp
jl case.0x4015c7.52
jmp 0x401d17
push ebp
call fcn.004034c2
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401908
jmp 0x4018ed
push 2
call fcn.004034c2
push 1
mov esi, eax
call fcn.004034c2
pop ecx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401d17
mov esi, dword [0x46f5a8]
push ebp
add esi, edx
call fcn.004034c2
pop ecx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015c7.52
test dword [esp + 0x3c], 0x100
je 0x402123
push 2
call fcn.004034c2
pop ecx
jmp 0x40212e
push dword [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
and ecx, 4
mov ebp, eax
mov dword [esp + 0x48], ecx
mov esi, eax
shr ebp, 0x1e
mov ecx, eax
shr ecx, 0x1f
and esi, 3
and ebp, 1
mov dword [esp + 0x20], ecx
test eax, 0x10000
je 0x402165
push 0x11
call fcn.004034fe
jmp 0x40216a
movzx eax, word [esp + 0x34]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x3c]
and eax, 0xfef0
push eax
mov eax, dword [esp + 0x60]
imul eax, ebp
push eax
mov eax, dword [esp + 0x60]
imul eax, dword [esp + 0x28]
push eax
xor eax, eax
cmp dword [esp + 0x54], eax
push esi
push dword [esp + 0x24]
cmovne eax, dword [0x467554]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebp, eax
push ebp
push esi
push 0x172
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4021d4
test esi, esi
jne 0x4021d4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x30], ebx
jl case.0x4015c7.52
push ebp
jmp 0x40174d
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.004034c2
pop ecx
push 0x48
push 0x5a
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x4200f0], eax
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.004034c2
pop ecx
mov ecx, dword [esp + 0x40]
push dword [esp + 0x34]
mov dword [0x420100], eax
mov al, cl
and al, 1
mov byte [0x420107], 1
mov byte [0x420104], al
mov al, cl
and al, 2
and cl, 4
push 0x42010c
mov byte [0x420105], al
mov byte [0x420106], cl
call fcn.0040659c
push 0x4200f0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebp, dword [esp + 0x14]
push eax
push ebp
jmp 0x40174e
push ebp
call fcn.004034c2
push 1
mov esi, eax
call fcn.004034c2
mov edi, eax
pop ecx
pop ecx
cmp dword [esp + 0x38], ebx
je 0x402298
push str.HideWindow
call fcn.00406f3c
pop ecx
push edi
push esi
cmp dword [esp + 0x44], ebx
jne 0x4022ab
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015c7.52
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015c7.52
push ebp
call fcn.004034fe
push 0x31
mov esi, eax
call fcn.004034fe
push 0x22
mov dword [esp + 0x14], eax
call fcn.004034fe
push 0x15
mov edi, eax
call fcn.004034fe
push 0x4100e8
push 0xffffffffffffffec
call fcn.0040643d
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x7c], ecx
cmp word [esi], bp
cmovne eax, esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
xor eax, eax
cmp word [edi], bp
mov dword [esp + 0x78], 0x4c8000
cmovne eax, edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x60]
push eax
call fcn.004073a2
test eax, eax
jne 0x402352
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esp + 0x18]
push esi
push 0x409798
call fcn.00406f3c
add esp, 0x14
jmp 0x401f8c
test byte [esp + 0x64], 0x40
je 0x402372
push dword [esp + 0x98]
call fcn.00406c02
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [esp + 0x14]
push esi
push str.ExecShell:
call fcn.00406f3c
jmp 0x401f04
push ebp
call fcn.004034fe
mov edi, eax
push edi
push str.Exec:_command__s_
call fcn.00406f3c
pop ecx
pop ecx
push edi
push 0xffffffffffffffeb
call fcn.0040643d
push edi
call fcn.0040702b
mov ebp, eax
push edi
test ebp, ebp
je 0x4023e6
push 0x40986c
call fcn.00406f3c
pop ecx
pop ecx
cmp dword [esp + 0x38], ebx
je 0x4023e0
push ebp
call fcn.00406c02
cmp dword [esp + 0x34], ebx
jl 0x4023d8
push eax
push esi
call fcn.00406ea5
jmp 0x4023e0
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
push ebp
jmp 0x402c6a
push str.Exec:
jmp 0x401982
push 2
call fcn.004034fe
push eax
call fcn.00406e55
mov ebp, eax
test ebp, ebp
je 0x402414
push dword [ebp + 0x14]
push esi
call fcn.00406ea5
push dword [ebp + 0x18]
jmp 0x40174d
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x401f8c
push 0xffffffffffffffee
call fcn.004034fe
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], eax
push ecx
push eax
push 0xb
call fcn.00407295
call eax
xor ecx, ecx
mov dword [esp + 0x20], eax
xor ebx, ebx
mov word [edi], cx
inc ebx
mov word [esi], cx
test eax, eax
je case.0x4015c7.52
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je case.0x4015c7.52
push 0xc
call fcn.00407295
push 0xd
mov esi, eax
call fcn.00407295
push dword [esp + 0x10]
mov dword [esp + 0x2c], eax
push dword [esp + 0x24]
push ebp
push dword [esp + 0x54]
call esi
test eax, eax
je 0x4024d3
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
push 0x4098b4
push dword [esp + 0x1c]
call dword [esp + 0x38]
test eax, eax
je 0x4024d3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push dword [ecx + eax*4 + 8]
push edi
call fcn.00406ea5
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
push dword [eax + ecx*4 + 0xc]
push edi
call fcn.00406ea5
mov ebx, ebp
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015c7.52
xor esi, esi
inc esi
mov ebx, esi
cmp dword [0x46f5c0], ebp
jl 0x4025da
push 0xfffffffffffffff0
call fcn.004034fe
push esi
mov edi, eax
call fcn.004034fe
mov dword [esp + 0x14], eax
cmp dword [esp + 0x40], ebp
je 0x402519
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40252d
push 8
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4025c3
push dword [esp + 0x14]
push esi
call fcn.00406957
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x402583
mov ebx, ebp
cmp dword [esp + 0x38], ebx
je 0x402563
push 0x4100e8
push dword [esp + 0x3c]
call fcn.0040643d
call dword [esp + 0x20]
neg eax
sbb ebx, ebx
neg ebx
jmp 0x40259e
mov eax, dword [esp + 0x18]
push section..data
push 0x40c0e0
push section..ndata
push 0x2000
push eax
call ecx
add esp, 0x14
jmp 0x40259e
mov ebp, dword [esp + 0x14]
push ebp
push 0xfffffffffffffff7
call fcn.0040643d
push edi
push ebp
push 0x4098b8
call fcn.00406f3c
add esp, 0xc
cmp dword [esp + 0x3c], 0
jne case.0x4015c7.52
push esi
call fcn.00404302
test eax, eax
je case.0x4015c7.52
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015c7.52
push 0x4100e8
push 0xfffffffffffffff6
call fcn.0040643d
push edi
push 0x4098e8
jmp 0x401985
push 0x4100e8
push 0xffffffffffffffe7
call fcn.0040643d
push 0x409910
jmp 0x4017bf
push 0xfffffffffffffff0
call fcn.004034fe
push 0xffffffffffffffdf
mov dword [esp + 0x28], eax
call fcn.004034fe
push 2
mov dword [esp + 0x14], eax
call fcn.004034fe
push 0xffffffffffffffcd
mov dword [esp + 0x4c], eax
call fcn.004034fe
mov ebx, eax
push 0x45
mov dword [esp + 0x1c], ebx
call fcn.004034fe
mov ecx, dword [esp + 0x40]
mov esi, ecx
push dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov edi, ecx
mov eax, ecx
sar edi, 0xc
and eax, 0x8000
sar ecx, 0x10
mov dword [esp + 0x24], eax
and esi, 0xfff
movzx eax, cx
and edi, 7
mov dword [esp + 0x50], esi
mov dword [esp + 0x18], eax
call fcn.004077af
test eax, eax
jne 0x40266a
push 0x21
call fcn.004034fe
push dword [esp + 0x14]
push edi
push esi
push ebx
push dword [esp + 0x58]
push dword [esp + 0x24]
push dword [esp + 0x3c]
push 0x409940
call fcn.00406f3c
add esp, 0x20
lea eax, [esp + 0x1c]
xor esi, esi
inc esi
push eax
push 0x40a5a4
push esi
push ebp
push 0x40a5c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x40276a
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push 0x40a5b4
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
js 0x402760
mov eax, dword [esp + 0x1c]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov ebx, eax
cmp dword [esp + 0x20], ebp
jne 0x4026f0
mov eax, dword [esp + 0x1c]
push 0x4c8000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test edi, edi
je 0x4026ff
mov eax, dword [esp + 0x1c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esp + 0x18]
cmp word [edx], bp
je 0x402725
mov eax, dword [esp + 0x1c]
push dword [esp + 0x4c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test ebx, ebx
js 0x402756
mov eax, dword [esp + 0x28]
push esi
push dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
sar eax, 0x1f
and eax, 0xfffffffc
push 0x4100e8
sub eax, 0xc
push eax
call fcn.0040643d
shr ebx, 0x1f
jmp case.0x4015c7.52
push ebp
call fcn.004034fe
push 0x11
mov esi, eax
call fcn.004034fe
push 0x23
mov edi, eax
call fcn.004034fe
push edi
push esi
push str.CopyFiles___s_____s_
mov dword [esp + 0x5c], eax
call fcn.00406f3c
add esp, 0xc
push esi
call fcn.00406e55
test eax, eax
jne 0x4027ca
push ebp
push 0xfffffffffffffff9
call fcn.0040643d
jmp 0x401f8c
mov eax, dword [esp + 0x18]
push esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 2
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
push edi
mov word [esi + eax*2 + 2], cx
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
mov ecx, dword [esp + 0x50]
mov ax, word [esp + 0x38]
push ecx
push ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x82], ecx
mov word [esp + 0x78], ax
call fcn.0040643d
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015c7.52
jmp 0x4027bd
cmp dword [esp + 0x1c], 0xbadf00d
jne 0x401f66
inc dword [0x46f634]
jmp case.0x4015c7.52
push str._RM_
mov edi, 0x4100e8
mov dword [esp + 0x14], ebp
push edi
mov dword [esp + 0x1c], ebp
call fcn.004074c9
push edi
mov ebx, 0x4140e8
push ebx
call fcn.004074c9
cmp dword [esp + 0x30], ebp
je 0x402878
push ebp
call fcn.004034fe
mov ebp, eax
cmp dword [esp + 0x34], 0
je 0x40288a
push 0x11
call fcn.004034fe
mov dword [esp + 0x10], eax
cmp dword [esp + 0x40], 0
je 0x40289c
push 0x22
call fcn.004034fe
mov dword [esp + 0x14], eax
push 0xffffffffffffffcd
call fcn.004034fe
mov esi, eax
push esi
push ebx
push edi
push 0x40c0e8
push str.WriteINIStr:
call fcn.00406f3c
add esp, 0x14
push esi
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401a36
push 1
mov dword [esp + 0x54], 0xa
call fcn.004034fe
push 0x12
mov edi, eax
call fcn.004034fe
push 0xffffffffffffffdd
mov esi, eax
call fcn.004034fe
mov ebp, dword [esp + 0x14]
push eax
push 0x1fff
push ebp
lea eax, [esp + 0x5c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xa
pop eax
cmp word [ebp], ax
jne case.0x4015c7.52
xor esi, esi
xor eax, eax
mov word [ebp], ax
lea ebx, [esi + 1]
jmp case.0x4015c7.52
xor ebp, ebp
push edx
inc ebp
call fcn.00406cbe
cmp dword [esp + 0x44], 0
mov ebx, eax
pop ecx
jne 0x402975
push 2
call fcn.00403581
mov edi, eax
test edi, edi
je 0x4029a0
push 0x33
call fcn.004034fe
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push 0x4140e8
push ebx
push str.DeleteRegValue:___s_s____s_
mov ebp, eax
call fcn.00406f3c
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4029a0
push 0x22
call fcn.004034fe
mov esi, eax
push esi
push ebx
push str.DeleteRegKey:___s_s_
call fcn.00406f3c
mov ecx, dword [esp + 0x4c]
add esp, 0xc
sar ecx, 1
push ecx
push esi
push dword [esp + 0x58]
call fcn.0040353c
mov ebp, eax
xor ebx, ebx
test ebp, ebp
setne bl
jmp case.0x4015c7.52
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
push 2
mov dword [esp + 0x4c], eax
call fcn.004034fe
push 0x11
mov dword [esp + 0x2c], eax
call fcn.004034fe
mov edi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x1c], eax
call fcn.00406cbe
pop ecx
mov dword [esp + 0x1c], eax
xor esi, esi
lea eax, [esp + 0x50]
inc esi
push eax
push 0x100022
push dword [esp + 0x20]
mov ebx, esi
push edi
call fcn.004034e3
push eax
call fcn.00406993
mov ecx, dword [esp + 0x50]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x402b60
mov eax, dword [esp + 0x10]
mov edi, 0x4140e8
cmp eax, esi
jne 0x402a75
push 0x23
call fcn.004034fe
push edi
call sub.KERNEL32.dll_lstrlenW
cmp dword [esp + 0x48], esi
mov esi, dword [esp + 0x18]
push edi
push dword [esp + 0x2c]
lea eax, [eax*2 + 2]
push esi
push dword [esp + 0x28]
mov dword [esp + 0x34], eax
jne 0x402a62
push str.WriteRegStr:___s_s____s___s_
call fcn.00406f3c
add esp, 0x14
jmp 0x402b1d
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00406f3c
add esp, 0x14
mov eax, dword [esp + 0x10]
jmp 0x402ab3
mov dword [esp + 0x24], ebp
cmp eax, 4
jne 0x402aaf
push 3
call fcn.004034c2
mov esi, dword [esp + 0x1c]
push eax
push dword [esp + 0x30]
mov dword [0x4140e8], eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x38], 4
push str.WriteRegDWORD:___s_s____s__0x_08x_
call fcn.00406f3c
add esp, 0x18
jmp 0x402a6f
mov esi, dword [esp + 0x18]
cmp eax, 3
jne 0x402b1d
push 0xc000
push edi
push ebp
push dword [esp + 0x48]
call fcn.00403787
push eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xa4]
push 0x80
push eax
call fcn.00406c44
mov edx, dword [esp + 0x58]
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x3c]
cmp edx, 7
mov eax, str.WriteRegBin
mov ecx, str.WriteRegMultiStr
cmovne ecx, eax
mov eax, str.WriteRegNone
push esi
push dword [esp + 0x38]
test edx, edx
cmovne eax, ecx
push eax
push str._s:___s_s____s___s_
call fcn.00406f3c
add esp, 0x28
push dword [esp + 0x24]
push edi
push dword [esp + 0x50]
mov edi, dword [esp + 0x34]
push ebp
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402b3e
mov ebx, ebp
jmp 0x402b51
push edi
push esi
push dword [esp + 0x24]
push 0x409be0
call fcn.00406f3c
add esp, 0x10
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015c7.52
push dword [esp + 0x18]
push dword [esp + 0x20]
push str.WriteReg:
call fcn.00406f3c
add esp, 0xc
jmp case.0x4015c7.52
push 0x20019
call fcn.00403581
push 0x33
mov esi, eax
call fcn.004034fe
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401f8c
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x4000
push ecx
push edi
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402bf3
cmp dword [esp + 0x10], 4
je 0x402be0
cmp dword [esp + 0x10], ecx
je 0x402bd1
cmp dword [esp + 0x10], 2
jne 0x402bf3
mov ebx, dword [esp + 0x40]
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp 0x402bfa
push dword [edi]
xor ebx, ebx
cmp dword [esp + 0x44], ebx
push edi
sete bl
call fcn.00406ea5
jmp 0x402bfa
xor eax, eax
mov ebx, ecx
mov word [edi], ax
push esi
jmp 0x402b55
push 0x20019
call fcn.00403581
push 3
mov esi, eax
call fcn.004034c2
pop ecx
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401f8c
mov ecx, 0x1fff
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x40], ebx
je 0x402c3c
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402bd5
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x60]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
jmp 0x402bd5
push edi
call fcn.004075d3
test eax, eax
je case.0x4015c7.52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015c7.52
push 0xffffffffffffffed
call fcn.004034fe
push dword [esp + 0x38]
push dword [esp + 0x38]
push eax
call fcn.004072ca
cmp eax, 0xffffffff
jne 0x401d17
xor eax, eax
mov word [edi], ax
jmp 0x401f8c
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edx, dword [esp + 0x38]
cmp ecx, 0x29
mov dword [esp + 0x50], edx
sete al
xor esi, esi
inc esi
mov dword [esp + 0x14], eax
test edx, edx
je 0x402cd2
push esi
call fcn.004034c2
mov word [0x4100e8], ax
mov eax, dword [esp + 0x18]
xor eax, esi
pop ecx
inc eax
jmp 0x402d11
cmp ecx, 0x29
jne 0x402d02
push 0x21
call fcn.004034fe
push 0x2000
push 0x4100e8
push 0x4140e8
call fcn.00406b57
add esp, 0xc
push 0x4100e8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402d11
push 0x11
call fcn.004034fe
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov dword [esp + 0x10], eax
cmp word [edi], bp
je 0x402d54
push edi
call fcn.004075d3
mov edi, eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x50]
jne 0x402d3d
cmp dword [esp + 0x3c], ebx
je 0x402d3d
push edi
push edi
call fcn.00406b72
test eax, eax
js 0x402d54
push dword [esp + 0x10]
push 0x4100e8
push edi
call fcn.004073ba
test eax, eax
jne case.0x4015c7.52
mov ebx, esi
jmp case.0x4015c7.52
push 2
pop ecx
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ecx
call fcn.004034c2
xor esi, esi
inc esi
pop ecx
cmp eax, esi
jl case.0x4015c7.52
mov ecx, 0x1fff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x20], eax
cmp word [edi], bp
je 0x402f2e
push edi
mov dword [esp + 0x4c], ebp
call fcn.004075d3
mov ecx, eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x20], ebx
jbe 0x402f32
mov dword [esp + 0x4c], 0xd
cmp dword [esp + 0x2c], 0x2a
jne 0x402e77
push ebp
lea eax, [esp + 0x28]
push eax
push 2
pop eax
sub eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402f32
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x402f32
movzx eax, byte [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x3c], ebp
jne 0x402f1f
push esi
lea eax, [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x402ea9
mov ecx, dword [esp + 0x28]
mov edx, ecx
neg edx
sub dword [esp + 0x24], 1
mov eax, 0xfffd
mov dword [esp + 0x18], eax
je 0x402eb1
push esi
dec ecx
inc edx
push ebp
push edx
push dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x60], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
test eax, eax
je 0x402e2a
jmp 0x402ea9
cmp dword [esp + 0x3c], ebp
jne 0x402e94
test ebx, ebx
jne 0x402e94
push ebp
push ecx
call fcn.00406b72
test eax, eax
js 0x402f32
mov ecx, dword [esp + 0x10]
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004072f7
test eax, eax
je 0x402f32
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], ebp
jne 0x402f1f
push 0xd
pop edx
cmp word [esp + 0x48], dx
push 0xa
pop edx
je 0x402ef0
cmp word [esp + 0x48], dx
je 0x402ef0
mov word [edi + ebx*2], ax
inc ebx
movzx eax, ax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], eax
test ax, ax
je 0x402f32
mov ecx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x20]
jl 0x402db5
jmp 0x402f32
cmp word [esp + 0x48], ax
je 0x402f0e
cmp ax, word [esp + 0x4c]
je 0x402f03
cmp ax, dx
jne 0x402f0e
mov word [edi + ebx*2], ax
inc ebx
mov dword [esp + 0x14], ebx
jmp 0x402f32
push esi
push ebp
neg ecx
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402f32
movzx eax, ax
push eax
push edi
call fcn.00406ea5
jmp 0x403361
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor ebx, ebx
test eax, eax
mov word [edi + eax*2], cx
jmp 0x401bd9
cmp word [edi], bp
je case.0x4015c7.52
push 2
call fcn.004034c2
pop ecx
push dword [esp + 0x3c]
push ebp
push eax
push edi
call fcn.004075d3
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x34], ebx
jl case.0x4015c7.52
push eax
push esi
jmp 0x40174e
push edi
call fcn.004075d3
test eax, eax
je case.0x4015c7.52
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015c7.52
push esi
call fcn.004075d3
test eax, eax
je 0x401a1b
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401a1b
jmp 0x402fe7
push 2
call fcn.004034fe
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402fe0
xor eax, eax
mov word [esi], ax
jmp 0x402c93
push eax
push esi
call fcn.00406ea5
lea eax, [esp + 0xc8]
push eax
push edi
call fcn.004074c9
jmp case.0x4015c7.52
push 0xfffffffffffffff0
call fcn.004034fe
mov esi, eax
push esi
mov dword [esp + 0x54], esi
call fcn.004077af
test eax, eax
jne 0x403018
push 0xffffffffffffffed
call fcn.004034fe
push esi
call fcn.0040754b
push 2
push 0x40000000
push esi
call fcn.004072ca
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x40310c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x38], ebx
je 0x4030f8
mov eax, dword [0x46f568]
push eax
push 0x40
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x4030f0
push ebp
call fcn.004035f1
push dword [esp + 0x20]
push edi
call fcn.004035db
push dword [esp + 0x38]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x4c], edi
test edi, edi
je 0x4030d2
push dword [esp + 0x38]
push edi
push ebp
push dword [esp + 0x40]
call fcn.00403787
cmp byte [edi], bl
je 0x4030c8
mov ebx, dword [esp + 0x10]
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebx
push eax
call fcn.00407009
add edi, esi
cmp byte [edi], 0
jne 0x4030a9
mov esi, dword [esp + 0x50]
mov ebx, ebp
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x1c]
call fcn.004073ba
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
jmp 0x4030f4
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.00403787
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403111
mov ebp, 0xfffffd66
push esi
push ebp
push 0x409c48
call fcn.00406f3c
add esp, 0xc
push 0xfffffffffffffff3
pop edi
test ebp, ebp
jns 0x403134
push 0xffffffffffffffef
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
push 0x4100e8
push edi
jmp 0x401660
cmp dword [esp + 0x1c], ebx
je 0x403183
push edx
push 0x409c6c
call fcn.00406f3c
mov eax, dword [esp + 0x3c]
push eax
push 0x409c80
mov dword [0x45e4e0], eax
call fcn.00406f3c
add esp, 0x10
cmp dword [esp + 0x34], ebx
je 0x403177
call fcn.00405f01
jmp case.0x4015c7.52
push 1
call fcn.00406f6e
jmp case.0x4015c7.52
push 1
call fcn.004034fe
push eax
push 0x4096e0
jmp 0x401985
push ebp
call fcn.004034c2
mov ebp, eax
pop ecx
cmp ebp, dword [0x46f58c]
jae 0x401f8c
mov ecx, dword [esp + 0x38]
imul edi, ebp, 0x4018
add edi, dword [0x46f588]
test ecx, ecx
js 0x4031d1
mov eax, dword [edi + ecx*4]
jne 0x402f73
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x402ff0
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x38], eax
je 0x4031ec
push 1
call fcn.004034c2
pop ecx
mov ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x403204
push dword [esp + 0x40]
lea eax, [edi + 0x18]
push eax
call fcn.0040659c
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x3c], ebx
je case.0x4015c7.52
push ebp
call fcn.00401221
jmp case.0x4015c7.52
push ebp
call fcn.004034c2
mov edx, eax
pop ecx
cmp edx, 0x20
jae 0x401f8c
cmp dword [esp + 0x3c], ebx
je 0x40325b
cmp dword [esp + 0x38], ebx
je 0x403250
push edx
call fcn.0040128f
push ebp
push ebp
call fcn.004012dc
jmp case.0x4015c7.52
push ebp
call fcn.004011a0
jmp 0x402f73
mov eax, dword [0x46f570]
cmp dword [esp + 0x38], ebx
je 0x403276
mov ecx, dword [esp + 0x34]
mov dword [eax + edx*4 + 0x94], ecx
jmp case.0x4015c7.52
push dword [eax + edx*4 + 0x94]
push esi
call fcn.0040659c
jmp case.0x4015c7.52
mov eax, dword [esp + 0x3c]
sub eax, ebp
je 0x4032da
sub eax, 1
jne case.0x4015c7.52
push 2
call fcn.004034c2
push 4
mov esi, eax
call fcn.004034c2
pop ecx
movzx edx, al
pop ecx
shr eax, 0x18
mov ecx, 0x46f620
test esi, esi
mov dword [esp + 0x20], ebp
push edx
cmovne ecx, esi
add eax, ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00407009
push dword [esp + 0x20]
mov edi, dword [esp + 0x28]
jmp 0x40174d
push 5
call fcn.00407295
push 0x22
mov edi, eax
call fcn.004034fe
test edi, edi
je 0x403329
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x403329
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x44]
lea eax, [esp + 0x5c]
push eax
call edi
test eax, eax
js 0x403329
push dword [esp + 0x20]
push esi
call fcn.004074c9
push dword [esp + 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x4015c7.52
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp case.0x4015c7.52
mov ecx, dword [esp + 0x1c]
and ecx, dword [0x434200]
push ebp
push ecx
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x30], ebx
je case.0x4015c7.52
mov eax, dword [esp + 0x18]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
add dword [0x46f628], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret 4