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 [0x467538]
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
mov esi, edx
shl edi, 0xe
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]
add eax, 0xfffffffe
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
cmp eax, 0x44
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], esi
ja case.0x4015c9.67
mov ecx, dword [esp + 0x20]
jmp dword [ecx*4 + 0x403372]
mov ecx, dword [esp + 0x1c]
push ecx
push str.Jump:__d
call fcn.00406e0b
mov eax, dword [esp + 0x38]
pop ecx
pop ecx
jmp 0x403365
push ebp
call fcn.004034fa
push eax
push str.Aborting:___s_
call fcn.00406e0b
pop ecx
pop ecx
push ebp
push dword [esp + 0x34]
call fcn.0040630c
mov eax, 0x7fffffff
jmp 0x403365
inc dword [0x46752c]
test eax, eax
je 0x401607
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401607
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004035b9
lea esi, [eax - 1]
push esi
push str.Call:__d
call fcn.00406e0b
pop ecx
pop ecx
push ebp
push esi
call fcn.00401398
jmp 0x403365
push ebp
call fcn.004034fa
push eax
push str.DetailPrint:__s
call fcn.00406e0b
pop ecx
pop ecx
push ebp
push dword [esp + 0x34]
call fcn.0040630c
jmp case.0x4015c9.67
push ebp
call fcn.004034be
mov esi, eax
push esi
push str.Sleep__d_
call fcn.00406e0b
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.0x4015c9.67
push str.BringToFront
call fcn.00406e0b
mov eax, dword [esp + 0x1c]
pop ecx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015c9.67
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
test eax, eax
jg 0x4016f4
mov eax, dword [ecx*4 + 0x46f600]
jns 0x4016cd
mov dword [0x4200e8], eax
jmp 0x4016d4
mov dword [ecx*4 + 0x46f5c0], eax
push 1
call fcn.004034be
mov ecx, eax
mov eax, dword [esp + 0x34]
push ecx
push eax
push str.SetFlag:__d_d
mov dword [eax*4 + 0x46f600], ecx
jmp 0x40237f
mov eax, dword [ecx*4 + 0x46f5c0]
mov dword [ecx*4 + 0x46f600], eax
cmp dword [esp + 0x3c], ebx
jge case.0x4015c9.67
mov eax, dword [0x4200e8]
mov dword [ecx*4 + 0x46f600], eax
jmp case.0x4015c9.67
mov ecx, dword [esp + 0x38]
push 4
mov edx, dword [ecx*4 + 0x46f600]
mov eax, edx
and eax, dword [esp + 0x40]
mov dword [ecx*4 + 0x46f600], eax
xor eax, eax
test edx, edx
pop ecx
cmove eax, ecx
mov eax, dword [esp + eax + 0x30]
jmp 0x403365
push dword [edx*4 + 0x46f600]
push edi
call fcn.00406d74
jmp case.0x4015c9.67
mov eax, dword [0x467524]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x401775
push edx
push eax
call esi
mov ecx, dword [esp + 0x30]
mov eax, dword [0x467528]
test eax, eax
je case.0x4015c9.67
push ecx
push eax
call esi
jmp case.0x4015c9.67
push 0xfffffffffffffff0
call fcn.004034fa
push dword [esp + 0x34]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.00406e0b
add esp, 0xc
push dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015c9.67
xor ebx, ebx
inc ebx
push 0x4093ac
call fcn.00406e0b
pop ecx
jmp case.0x4015c9.67
push 0xfffffffffffffff0
call fcn.004034fa
push dword [esp + 0x34]
mov esi, eax
push esi
push str.CreateDirectory:___s____d_
call fcn.00406e0b
add esp, 0xc
push esi
call fcn.00407442
mov edi, eax
test edi, edi
je 0x40187d
push 0x5c
push edi
call fcn.00406d4b
mov edi, eax
xor eax, eax
movzx ebp, word [edi]
mov word [edi], ax
test bp, bp
jne 0x401825
cmp dword [esp + 0x38], eax
je 0x401825
call fcn.00406ab9
test eax, eax
je 0x401825
push esi
call fcn.00406410
jmp 0x40182b
push esi
call fcn.004063f0
test eax, eax
je 0x401861
cmp eax, 0xb7
je 0x401848
push eax
push esi
push 0x4093f8
call fcn.00406e0b
add esp, 0xc
inc ebx
jmp 0x40186e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40186e
push esi
push str.CreateDirectory:
call fcn.00406e0b
inc ebx
jmp 0x40186c
push esi
push str.CreateDirectory:___s_
call fcn.00406e0b
pop ecx
pop ecx
mov word [edi], bp
add edi, 2
test bp, bp
jne 0x4017f7
cmp dword [esp + 0x34], 0
push 0x4100e8
je 0x4018c4
push 0xffffffffffffffe6
call fcn.0040630c
push esi
push 0x4c8000
call fcn.00407398
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4015c9.67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SetCurrentDirectory__s_
call fcn.00406e0b
add esp, 0xc
jmp 0x401a3c
push 0xfffffffffffffff5
jmp 0x401662
push ebp
call fcn.004034fa
mov esi, eax
push esi
call fcn.00406d24
test eax, eax
je 0x4018f8
push dword [esp + 0x34]
push esi
push 0x409500
call fcn.00406e0b
add esp, 0xc
mov eax, dword [esp + 0x34]
jmp 0x403365
push dword [esp + 0x38]
push esi
push str.IfFileExists:
call fcn.00406e0b
add esp, 0xc
mov eax, dword [esp + 0x38]
jmp 0x403365
push 0xffffffffffffffd0
call fcn.004034fa
push 0xffffffffffffffdf
mov edi, eax
call fcn.004034fa
push 0x13
mov ebp, eax
call fcn.004034fa
mov esi, eax
push esi
push str.Rename:__s
call fcn.00406e0b
pop ecx
pop ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401953
push 0x4100e8
push 0xffffffffffffffe3
jmp 0x401662
cmp dword [esp + 0x38], ebx
je 0x40197e
push edi
call fcn.00406d24
test eax, eax
je 0x40197e
push ebp
push edi
call fcn.004067fa
push 0x4100e8
push 0xffffffffffffffe4
call fcn.0040630c
push esi
push 0x40959c
jmp 0x401987
push esi
push str.T_rT1Y_
xor ebx, ebx
inc ebx
call fcn.00406e0b
pop ecx
jmp 0x4017c6
push ebp
call fcn.004034fa
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 0x4019d6
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x4019de
cmp word [eax], bp
je 0x4019de
push edi
call fcn.00406d24
test eax, eax
je 0x4019d6
add eax, 0x2c
push eax
push dword [esp + 0x18]
call fcn.00407398
jmp 0x4019de
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
cmp dword [esp + 0x38], ebp
jne case.0x4015c9.67
push 0x2000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x4015c9.67
push 0xffffffffffffffff
call fcn.004034fa
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.0x4015c9.67
xor ebx, ebx
inc ebx
xor eax, eax
mov word [edi], ax
jmp case.0x4015c9.67
push 0xffffffffffffffef
call fcn.004034fa
push eax
push edi
call fcn.004072d4
neg eax
sbb ebx, ebx
inc ebx
jmp case.0x4015c9.67
push 0x31
call fcn.004034fa
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.00406e0b
add esp, 0x10
push esi
call fcn.0040767e
mov edi, 0x40c0e8
push esi
test eax, eax
je 0x401a8a
push edi
call fcn.00407398
jmp 0x401aa1
push 0x4c8000
push edi
call fcn.00407398
push eax
call fcn.00406cab
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.004075ba
xor esi, esi
inc esi
mov eax, dword [esp + 0x18]
cmp eax, 3
jl 0x401ae7
push edi
call fcn.00406d24
mov ecx, ebp
test eax, eax
je 0x401ad0
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 0x401af1
push edi
call fcn.0040741a
xor eax, eax
cmp dword [esp + 0x18], esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00407199
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401be3
cmp dword [esp + 0x18], ebx
jne 0x401bb7
push edi
push 0x409644
call fcn.00406e0b
pop ecx
pop ecx
push section..ndata
push 0x4140e8
call fcn.00407398
push edi
push section..ndata
call fcn.00407398
push dword [esp + 0x44]
push 0x4100e8
call fcn.0040646b
push 0x4140e8
push section..ndata
call fcn.00407398
mov eax, dword [esp + 0x30]
sar eax, 3
push eax
push 0x4100e8
call fcn.00407326
sub eax, 4
jne 0x401b89
push 0x409664
call fcn.00406e0b
pop ecx
jmp 0x401aaa
sub eax, 1
je 0x401ba1
push 0x40969c
call fcn.00406e0b
pop ecx
push edi
push 0xfffffffffffffffa
jmp 0x401602
push 0x409680
call fcn.00406e0b
inc dword [0x46f608]
pop ecx
jmp 0x403363
mov esi, dword [esp + 0x14]
push esi
push 0xffffffffffffffe2
call fcn.0040630c
mov ebp, dword [esp + 0x18]
push ebp
push edi
push 0x409610
call fcn.00406e0b
add esp, 0xc
xor ebx, ebx
cmp ebp, 2
sete bl
jmp case.0x4015c9.67
mov esi, dword [esp + 0x14]
push esi
push 0xffffffffffffffea
call fcn.0040630c
inc dword [0x46f634]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.00403604
dec dword [0x46f634]
push edi
push eax
push str.File:
mov dword [esp + 0x2c], eax
call fcn.00406e0b
add esp, 0xc
cmp dword [esp + 0x3c], 0xffffffff
jne 0x401c2b
cmp dword [esp + 0x40], 0xffffffff
je 0x401c3c
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.0x4015c9.67
cmp eax, 0xfffffffe
jne 0x401c68
push 0xffffffffffffffe9
push edi
call fcn.0040646b
push esi
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401c70
push 0xffffffffffffffee
push edi
call fcn.0040646b
push edi
push 0x4096e0
call fcn.00406e0b
pop ecx
pop ecx
push 0x200010
push edi
call fcn.00407326
jmp 0x401607
push ebp
call fcn.004034fa
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00406e0b
pop ecx
pop ecx
push dword [esp + 0x34]
push esi
call fcn.00406f3d
jmp case.0x4015c9.67
push 0x31
call fcn.004034fa
mov esi, eax
push esi
push dword [esp + 0x34]
push str.MessageBox:__d___s_
call fcn.00406e0b
add esp, 0xc
push dword [esp + 0x30]
push esi
call fcn.00407326
test eax, eax
je 0x401f8e
cmp eax, dword [esp + 0x38]
je 0x401e43
cmp eax, dword [esp + 0x40]
jne case.0x4015c9.67
mov eax, dword [esp + 0x44]
jmp 0x403365
push 0xfffffffffffffff0
call fcn.004034fa
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x401c9b
push 1
call fcn.004034fa
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x40174f
push 2
call fcn.004034be
push 3
mov ebp, eax
mov esi, edx
call fcn.004034be
pop ecx
pop ecx
push 1
mov dword [esp + 0x24], eax
call fcn.004034fa
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.0x4015c9.67
mov eax, dword [esp + 0x20]
test eax, eax
jns 0x401d6c
add eax, ecx
js case.0x4015c9.67
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
push eax
push edi
call fcn.00407398
test ebp, ebp
jns 0x401d8b
push edi
call sub.KERNEL32.dll_lstrlenW
add ebp, eax
xor eax, eax
test ebp, ebp
cmovns eax, ebp
cmp eax, 0x2000
jge case.0x4015c9.67
xor ecx, ecx
mov word [edi + eax*2], cx
jmp case.0x4015c9.67
push 0x20
call fcn.004034fa
push 0x31
mov esi, eax
call fcn.004034fa
push eax
push esi
cmp dword [esp + 0x48], ebx
jne 0x401dd0
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40190a
jmp 0x401e43
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401dc6
xor ebp, ebp
inc ebp
push ebp
call fcn.004034fa
push 0x2000
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401e06
cmp dword [esp + 0x38], ebx
je 0x401e0d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401e0d
xor eax, eax
mov ebx, ebp
mov word [edi], ax
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp case.0x4015c9.67
mov esi, dword [esp + 0x44]
push ebp
call fcn.004034be
push 1
mov edi, eax
call fcn.004034be
pop ecx
pop ecx
test esi, esi
jne 0x401e3f
cmp edi, eax
jl 0x401e43
jg 0x401e52
jmp 0x40190a
cmp edi, eax
jae 0x401e4c
mov eax, dword [esp + 0x3c]
jmp 0x403365
jbe 0x40190a
mov eax, dword [esp + 0x40]
jmp 0x403365
push 1
call fcn.004034be
push 2
mov esi, eax
call fcn.004034be
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, 0xd
ja case.default.0x401e78
jmp dword [eax*4 + 0x403486]
add esi, ecx
jmp case.default.0x401e78
sub esi, ecx
jmp case.default.0x401e78
imul esi, ecx
jmp case.default.0x401e78
test ecx, ecx
je 0x401e99
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401e9b
mov esi, ebp
xor ebx, ebx
test ecx, ecx
sete bl
jmp case.default.0x401e78
or esi, ecx
jmp case.default.0x401e78
and esi, ecx
jmp case.default.0x401e78
xor esi, ecx
jmp case.default.0x401e78
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401e78
test esi, esi
jne 0x401ec3
test ecx, ecx
je 0x401ecc
xor esi, esi
inc esi
jmp case.default.0x401e78
test esi, esi
jne 0x401ebf
mov esi, ebp
jmp case.default.0x401e78
test ecx, ecx
je 0x401e99
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401e9b
shl esi, cl
jmp case.default.0x401e78
sar esi, cl
jmp case.default.0x401e78
shr esi, cl
push esi
jmp 0x40174f
push 1
call fcn.004034fa
push 2
mov esi, eax
call fcn.004034be
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x4015c9.67
mov eax, dword [esp + 0x38]
mov esi, dword [0x40c0e0]
test eax, eax
je 0x401f7b
dec eax
test esi, esi
je 0x401f58
mov esi, dword [esi]
test eax, eax
jne 0x401f1c
test esi, esi
je 0x401f58
add esi, 4
mov edi, 0x40c0e8
push esi
push edi
call fcn.00407398
mov eax, dword [0x40c0e0]
add eax, 4
push eax
push esi
call fcn.00407398
mov eax, dword [0x40c0e0]
push edi
add eax, 4
push eax
jmp 0x402ff2
push dword [esp + 0x38]
push str.Exch:
call fcn.00406e0b
pop ecx
pop ecx
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.0040646b
push eax
jmp 0x401c83
test edx, edx
je 0x401fad
test esi, esi
jne 0x401f96
push str.Pop:
call fcn.00406e0b
pop ecx
xor ebx, ebx
inc ebx
jmp case.0x4015c9.67
lea eax, [esi + 4]
push eax
push edi
call fcn.00407398
mov eax, dword [esi]
mov dword [0x40c0e0], eax
push esi
jmp 0x4024d9
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.0040646b
mov ecx, dword [0x40c0e0]
mov dword [esi], ecx
mov dword [0x40c0e0], esi
jmp case.0x4015c9.67
push 3
call fcn.004034be
push 4
mov dword [esp + 0x2c], eax
call fcn.004034be
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], esi
pop ecx
pop ecx
test al, 1
je 0x40200d
push 0x33
call fcn.004034fa
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
test al, 2
je 0x40201e
push 0x44
call fcn.004034fa
mov esi, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], 0x21
push 1
jne 0x402078
call fcn.004034be
push 2
mov dword [esp + 0x1c], eax
call fcn.004034be
pop ecx
pop ecx
mov ecx, dword [esp + 0x44]
sar ecx, 2
test ecx, ecx
je 0x402066
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 0x4020aa
push esi
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4020a6
call fcn.004034fa
push 0x12
mov esi, eax
call fcn.004034fa
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.0x4015c9.67
jmp 0x401d19
push ebp
call fcn.004034be
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40190a
jmp 0x4018ef
push 2
call fcn.004034be
push 1
mov esi, eax
call fcn.004034be
pop ecx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401d19
mov esi, dword [0x46f588]
push ebp
add esi, edx
call fcn.004034be
pop ecx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015c9.67
test dword [esp + 0x3c], 0x100
je 0x402125
push 2
call fcn.004034be
pop ecx
jmp 0x402130
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 0x402167
push 0x11
call fcn.004034fa
jmp 0x40216c
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 [0x467534]
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 0x4021d6
test esi, esi
jne 0x4021d6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x30], ebx
jl case.0x4015c9.67
push ebp
jmp 0x40174f
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.004034be
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.004034be
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.0040646b
push 0x4200f0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebp, dword [esp + 0x14]
push eax
push ebp
jmp 0x401750
push ebp
call fcn.004034be
push 1
mov esi, eax
call fcn.004034be
mov edi, eax
pop ecx
pop ecx
cmp dword [esp + 0x38], ebx
je 0x40229a
push str.HideWindow
call fcn.00406e0b
pop ecx
push edi
push esi
cmp dword [esp + 0x44], ebx
jne 0x4022ad
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015c9.67
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015c9.67
push ebp
call fcn.004034fa
push 0x31
mov esi, eax
call fcn.004034fa
push 0x22
mov dword [esp + 0x14], eax
call fcn.004034fa
push 0x15
mov edi, eax
call fcn.004034fa
push 0x4100e8
push 0xffffffffffffffec
call fcn.0040630c
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.00407271
test eax, eax
jne 0x402354
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esp + 0x18]
push esi
push 0x409798
call fcn.00406e0b
add esp, 0x14
jmp 0x401f8e
test byte [esp + 0x64], 0x40
je 0x402374
push dword [esp + 0x98]
call fcn.00406ad1
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [esp + 0x14]
push esi
push str.ExecShell:
call fcn.00406e0b
jmp 0x401f06
push ebp
call fcn.004034fa
mov edi, eax
push edi
push str.Exec:_command__s_
call fcn.00406e0b
pop ecx
pop ecx
push edi
push 0xffffffffffffffeb
call fcn.0040630c
push edi
call fcn.00406efa
mov ebp, eax
push edi
test ebp, ebp
je 0x4023e8
push 0x40986c
call fcn.00406e0b
pop ecx
pop ecx
cmp dword [esp + 0x38], ebx
je 0x4023e2
push ebp
call fcn.00406ad1
cmp dword [esp + 0x34], ebx
jl 0x4023da
push eax
push esi
call fcn.00406d74
jmp 0x4023e2
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
push ebp
jmp 0x402c6c
push str.Exec:
jmp 0x401984
push 2
call fcn.004034fa
push eax
call fcn.00406d24
mov ebp, eax
test ebp, ebp
je 0x402416
push dword [ebp + 0x14]
push esi
call fcn.00406d74
push dword [ebp + 0x18]
jmp 0x40174f
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x401f8e
push 0xffffffffffffffee
call fcn.004034fa
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], eax
push ecx
push eax
push 0xb
call fcn.00407164
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.0x4015c9.67
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je case.0x4015c9.67
push 0xc
call fcn.00407164
push 0xd
mov esi, eax
call fcn.00407164
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 0x4024d5
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 0x4024d5
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push dword [ecx + eax*4 + 8]
push edi
call fcn.00406d74
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.00406d74
mov ebx, ebp
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015c9.67
xor esi, esi
inc esi
mov ebx, esi
cmp dword [0x46f5a0], ebp
jl 0x4025dc
push 0xfffffffffffffff0
call fcn.004034fa
push esi
mov edi, eax
call fcn.004034fa
mov dword [esp + 0x14], eax
cmp dword [esp + 0x40], ebp
je 0x40251b
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40252f
push 8
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4025c5
push dword [esp + 0x14]
push esi
call fcn.00406826
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x402585
mov ebx, ebp
cmp dword [esp + 0x38], ebx
je 0x402565
push 0x4100e8
push dword [esp + 0x3c]
call fcn.0040630c
call dword [esp + 0x20]
neg eax
sbb ebx, ebx
neg ebx
jmp 0x4025a0
mov eax, dword [esp + 0x18]
push section..data
push 0x40c0e0
push section..ndata
push 0x2000
push eax
call ecx
add esp, 0x14
jmp 0x4025a0
mov ebp, dword [esp + 0x14]
push ebp
push 0xfffffffffffffff7
call fcn.0040630c
push edi
push ebp
push 0x4098b8
call fcn.00406e0b
add esp, 0xc
cmp dword [esp + 0x3c], 0
jne case.0x4015c9.67
push esi
call fcn.004041d1
test eax, eax
je case.0x4015c9.67
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015c9.67
push 0x4100e8
push 0xfffffffffffffff6
call fcn.0040630c
push edi
push 0x4098e8
jmp 0x401987
push 0x4100e8
push 0xffffffffffffffe7
call fcn.0040630c
push 0x409910
jmp 0x4017c1
push 0xfffffffffffffff0
call fcn.004034fa
push 0xffffffffffffffdf
mov dword [esp + 0x28], eax
call fcn.004034fa
push 2
mov dword [esp + 0x14], eax
call fcn.004034fa
push 0xffffffffffffffcd
mov dword [esp + 0x4c], eax
call fcn.004034fa
mov ebx, eax
push 0x45
mov dword [esp + 0x1c], ebx
call fcn.004034fa
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.0040767e
test eax, eax
jne 0x40266c
push 0x21
call fcn.004034fa
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.00406e0b
add esp, 0x20
lea eax, [esp + 0x1c]
xor esi, esi
inc esi
push eax
push 0x40a58c
push esi
push ebp
push 0x40a5ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x40276c
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push 0x40a59c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
js 0x402762
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 0x4026f2
mov eax, dword [esp + 0x1c]
push 0x4c8000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test edi, edi
je 0x402701
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 0x402727
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 0x402758
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.0040630c
shr ebx, 0x1f
jmp case.0x4015c9.67
push ebp
call fcn.004034fa
push 0x11
mov esi, eax
call fcn.004034fa
push 0x23
mov edi, eax
call fcn.004034fa
push edi
push esi
push str.CopyFiles___s_____s_
mov dword [esp + 0x5c], eax
call fcn.00406e0b
add esp, 0xc
push esi
call fcn.00406d24
test eax, eax
jne 0x4027cc
push ebp
push 0xfffffffffffffff9
call fcn.0040630c
jmp 0x401f8e
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.0040630c
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015c9.67
jmp 0x4027bf
cmp dword [esp + 0x1c], 0xbadf00d
jne 0x401f68
inc dword [0x46f614]
jmp case.0x4015c9.67
push str._RM_
mov edi, 0x4100e8
mov dword [esp + 0x14], ebp
push edi
mov dword [esp + 0x1c], ebp
call fcn.00407398
push edi
mov ebx, 0x4140e8
push ebx
call fcn.00407398
cmp dword [esp + 0x30], ebp
je 0x40287a
push ebp
call fcn.004034fa
mov ebp, eax
cmp dword [esp + 0x34], 0
je 0x40288c
push 0x11
call fcn.004034fa
mov dword [esp + 0x10], eax
cmp dword [esp + 0x40], 0
je 0x40289e
push 0x22
call fcn.004034fa
mov dword [esp + 0x14], eax
push 0xffffffffffffffcd
call fcn.004034fa
mov esi, eax
push esi
push ebx
push edi
push 0x40c0e8
push str.WriteINIStr:
call fcn.00406e0b
add esp, 0x14
push esi
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401a38
push 1
mov dword [esp + 0x54], 0xa
call fcn.004034fa
push 0x12
mov edi, eax
call fcn.004034fa
push 0xffffffffffffffdd
mov esi, eax
call fcn.004034fa
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.0x4015c9.67
xor esi, esi
xor eax, eax
mov word [ebp], ax
lea ebx, [esi + 1]
jmp case.0x4015c9.67
xor ebp, ebp
push edx
inc ebp
call fcn.00406b8d
cmp dword [esp + 0x44], 0
mov ebx, eax
pop ecx
jne 0x402977
push 2
call fcn.0040357d
mov edi, eax
test edi, edi
je 0x4029a2
push 0x33
call fcn.004034fa
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.00406e0b
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4029a2
push 0x22
call fcn.004034fa
mov esi, eax
push esi
push ebx
push str.DeleteRegKey:___s_s_
call fcn.00406e0b
mov ecx, dword [esp + 0x4c]
add esp, 0xc
sar ecx, 1
push ecx
push esi
push dword [esp + 0x58]
call fcn.00403538
mov ebp, eax
xor ebx, ebx
test ebp, ebp
setne bl
jmp case.0x4015c9.67
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
push 2
mov dword [esp + 0x4c], eax
call fcn.004034fa
push 0x11
mov dword [esp + 0x2c], eax
call fcn.004034fa
mov edi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x1c], eax
call fcn.00406b8d
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.004034df
push eax
call fcn.00406862
mov ecx, dword [esp + 0x50]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x402b62
mov eax, dword [esp + 0x10]
mov edi, 0x4140e8
cmp eax, esi
jne 0x402a77
push 0x23
call fcn.004034fa
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 0x402a64
push str.WriteRegStr:___s_s____s___s_
call fcn.00406e0b
add esp, 0x14
jmp 0x402b1f
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00406e0b
add esp, 0x14
mov eax, dword [esp + 0x10]
jmp 0x402ab5
mov dword [esp + 0x24], ebp
cmp eax, 4
jne 0x402ab1
push 3
call fcn.004034be
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.00406e0b
add esp, 0x18
jmp 0x402a71
mov esi, dword [esp + 0x18]
cmp eax, 3
jne 0x402b1f
push 0xc000
push edi
push ebp
push dword [esp + 0x48]
call fcn.00403604
push eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xa4]
push 0x80
push eax
call fcn.00406b13
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.00406e0b
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 0x402b40
mov ebx, ebp
jmp 0x402b53
push edi
push esi
push dword [esp + 0x24]
push 0x409be0
call fcn.00406e0b
add esp, 0x10
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015c9.67
push dword [esp + 0x18]
push dword [esp + 0x20]
push str.WriteReg:
call fcn.00406e0b
add esp, 0xc
jmp case.0x4015c9.67
push 0x20019
call fcn.0040357d
push 0x33
mov esi, eax
call fcn.004034fa
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401f8e
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 0x402bf5
cmp dword [esp + 0x10], 4
je 0x402be2
cmp dword [esp + 0x10], ecx
je 0x402bd3
cmp dword [esp + 0x10], 2
jne 0x402bf5
mov ebx, dword [esp + 0x40]
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp 0x402bfc
push dword [edi]
xor ebx, ebx
cmp dword [esp + 0x44], ebx
push edi
sete bl
call fcn.00406d74
jmp 0x402bfc
xor eax, eax
mov ebx, ecx
mov word [edi], ax
push esi
jmp 0x402b57
push 0x20019
call fcn.0040357d
push 3
mov esi, eax
call fcn.004034be
pop ecx
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401f8e
mov ecx, 0x1fff
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x40], ebx
je 0x402c3e
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402bd7
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 0x402bd7
push edi
call fcn.004074a2
test eax, eax
je case.0x4015c9.67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015c9.67
push 0xffffffffffffffed
call fcn.004034fa
push dword [esp + 0x38]
push dword [esp + 0x38]
push eax
call fcn.00407199
cmp eax, 0xffffffff
jne 0x401d19
xor eax, eax
mov word [edi], ax
jmp 0x401f8e
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edx, dword [esp + 0x38]
cmp ecx, 0x38
mov dword [esp + 0x50], edx
sete al
xor esi, esi
inc esi
mov dword [esp + 0x14], eax
test edx, edx
je 0x402cd4
push esi
call fcn.004034be
mov word [0x4100e8], ax
mov eax, dword [esp + 0x18]
xor eax, esi
pop ecx
inc eax
jmp 0x402d13
cmp ecx, 0x38
jne 0x402d04
push 0x21
call fcn.004034fa
push 0x2000
push 0x4100e8
push 0x4140e8
call fcn.00406a26
add esp, 0xc
push 0x4100e8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402d13
push 0x11
call fcn.004034fa
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov dword [esp + 0x10], eax
cmp word [edi], bp
je 0x402d56
push edi
call fcn.004074a2
mov edi, eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x50]
jne 0x402d3f
cmp dword [esp + 0x3c], ebx
je 0x402d3f
push edi
push edi
call fcn.00406a41
test eax, eax
js 0x402d56
push dword [esp + 0x10]
push 0x4100e8
push edi
call fcn.00407289
test eax, eax
jne case.0x4015c9.67
mov ebx, esi
jmp case.0x4015c9.67
push 2
pop ecx
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ecx
call fcn.004034be
xor esi, esi
inc esi
pop ecx
cmp eax, esi
jl case.0x4015c9.67
mov ecx, 0x1fff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x20], eax
cmp word [edi], bp
je 0x402f30
push edi
mov dword [esp + 0x4c], ebp
call fcn.004074a2
mov ecx, eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x20], ebx
jbe 0x402f34
mov dword [esp + 0x4c], 0xd
cmp dword [esp + 0x2c], 0x39
jne 0x402e79
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 0x402f34
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x402f34
movzx eax, byte [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x3c], ebp
jne 0x402f21
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 0x402eab
mov ecx, dword [esp + 0x28]
mov edx, ecx
neg edx
sub dword [esp + 0x24], 1
mov eax, 0xfffd
mov dword [esp + 0x18], eax
je 0x402eb3
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 0x402e2c
jmp 0x402eab
cmp dword [esp + 0x3c], ebp
jne 0x402e96
test ebx, ebx
jne 0x402e96
push ebp
push ecx
call fcn.00406a41
test eax, eax
js 0x402f34
mov ecx, dword [esp + 0x10]
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004071c6
test eax, eax
je 0x402f34
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], ebp
jne 0x402f21
push 0xd
pop edx
cmp word [esp + 0x48], dx
push 0xa
pop edx
je 0x402ef2
cmp word [esp + 0x48], dx
je 0x402ef2
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 0x402f34
mov ecx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x20]
jl 0x402db7
jmp 0x402f34
cmp word [esp + 0x48], ax
je 0x402f10
cmp ax, word [esp + 0x4c]
je 0x402f05
cmp ax, dx
jne 0x402f10
mov word [edi + ebx*2], ax
inc ebx
mov dword [esp + 0x14], ebx
jmp 0x402f34
push esi
push ebp
neg ecx
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402f34
movzx eax, ax
push eax
push edi
call fcn.00406d74
jmp 0x403363
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 0x401bdb
cmp word [edi], bp
je case.0x4015c9.67
push 2
call fcn.004034be
pop ecx
push dword [esp + 0x3c]
push ebp
push eax
push edi
call fcn.004074a2
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x34], ebx
jl case.0x4015c9.67
push eax
push esi
jmp 0x401750
push edi
call fcn.004074a2
test eax, eax
je case.0x4015c9.67
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015c9.67
push esi
call fcn.004074a2
test eax, eax
je 0x401a1d
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401a1d
jmp 0x402fe9
push 2
call fcn.004034fa
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402fe2
xor eax, eax
mov word [esi], ax
jmp 0x402c95
push eax
push esi
call fcn.00406d74
lea eax, [esp + 0xc8]
push eax
push edi
call fcn.00407398
jmp case.0x4015c9.67
push 0xfffffffffffffff0
call fcn.004034fa
mov esi, eax
push esi
mov dword [esp + 0x54], esi
call fcn.0040767e
test eax, eax
jne 0x40301a
push 0xffffffffffffffed
call fcn.004034fa
push esi
call fcn.0040741a
push 2
push 0x40000000
push esi
call fcn.00407199
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x40310e
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x38], ebx
je 0x4030fa
mov eax, dword [0x46f548]
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 0x4030f2
push ebp
call fcn.004035ed
push dword [esp + 0x20]
push edi
call fcn.004035d7
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 0x4030d4
push dword [esp + 0x38]
push edi
push ebp
push dword [esp + 0x40]
call fcn.00403604
cmp byte [edi], bl
je 0x4030ca
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.00406ed8
add edi, esi
cmp byte [edi], 0
jne 0x4030ab
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.00407289
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
jmp 0x4030f6
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.00403604
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403113
mov ebp, 0xfffffd66
push esi
push ebp
push 0x409c48
call fcn.00406e0b
add esp, 0xc
push 0xfffffffffffffff3
pop edi
test ebp, ebp
jns 0x403136
push 0xffffffffffffffef
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
push 0x4100e8
push edi
jmp 0x401662
cmp dword [esp + 0x1c], ebx
je 0x403185
push edx
push 0x409c6c
call fcn.00406e0b
mov eax, dword [esp + 0x3c]
push eax
push 0x409c80
mov dword [0x45e4c0], eax
call fcn.00406e0b
add esp, 0x10
cmp dword [esp + 0x34], ebx
je 0x403179
call fcn.00405dd0
jmp case.0x4015c9.67
push 1
call fcn.00406e3d
jmp case.0x4015c9.67
push 1
call fcn.004034fa
push eax
push 0x4096e0
jmp 0x401987
push ebp
call fcn.004034be
mov ebp, eax
pop ecx
cmp ebp, dword [0x46f56c]
jae 0x401f8e
mov ecx, dword [esp + 0x38]
imul edi, ebp, 0x4018
add edi, dword [0x46f568]
test ecx, ecx
js 0x4031d3
mov eax, dword [edi + ecx*4]
jne 0x402f75
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x402ff2
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x38], eax
je 0x4031ee
push 1
call fcn.004034be
pop ecx
mov ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x403206
push dword [esp + 0x40]
lea eax, [edi + 0x18]
push eax
call fcn.0040646b
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.0x4015c9.67
push ebp
call fcn.00401221
jmp case.0x4015c9.67
push ebp
call fcn.004034be
mov edx, eax
pop ecx
cmp edx, 0x20
jae 0x401f8e
cmp dword [esp + 0x3c], ebx
je 0x40325d
cmp dword [esp + 0x38], ebx
je 0x403252
push edx
call fcn.0040128f
push ebp
push ebp
call fcn.004012dc
jmp case.0x4015c9.67
push ebp
call fcn.004011a0
jmp 0x402f75
mov eax, dword [0x46f550]
cmp dword [esp + 0x38], ebx
je 0x403278
mov ecx, dword [esp + 0x34]
mov dword [eax + edx*4 + 0x94], ecx
jmp case.0x4015c9.67
push dword [eax + edx*4 + 0x94]
push esi
call fcn.0040646b
jmp case.0x4015c9.67
mov eax, dword [esp + 0x3c]
sub eax, ebp
je 0x4032dc
sub eax, 1
jne case.0x4015c9.67
push 2
call fcn.004034be
push 4
mov esi, eax
call fcn.004034be
pop ecx
movzx edx, al
pop ecx
shr eax, 0x18
mov ecx, 0x46f600
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.00406ed8
push dword [esp + 0x20]
mov edi, dword [esp + 0x28]
jmp 0x40174f
push 5
call fcn.00407164
push 0x22
mov edi, eax
call fcn.004034fa
test edi, edi
je 0x40332b
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x40332b
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x44]
lea eax, [esp + 0x5c]
push eax
call edi
test eax, eax
js 0x40332b
push dword [esp + 0x20]
push esi
call fcn.00407398
push dword [esp + 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x4015c9.67
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp case.0x4015c9.67
mov ecx, dword [esp + 0x1c]
and ecx, dword [0x4341f0]
push ebp
push ecx
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x30], ebx
je case.0x4015c9.67
mov eax, dword [esp + 0x18]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
add dword [0x46f608], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret 4