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 [0x472238]
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 [0x40c104], 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.00406e34
mov eax, dword [esp + 0x38]
pop ecx
pop ecx
jmp 0x403363
push ebp
call fcn.004034fe
push eax
push str.Aborting:___s_
call fcn.00406e34
pop ecx
pop ecx
push ebp
push dword [esp + 0x34]
call fcn.00406335
mov eax, 0x7fffffff
jmp 0x403363
inc dword [0x47222c]
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.00406e34
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.00406e34
pop ecx
pop ecx
push ebp
push dword [esp + 0x34]
call fcn.00406335
jmp case.0x4015c7.52
push ebp
call fcn.004034c2
mov esi, eax
push esi
push str.Sleep__d_
call fcn.00406e34
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.00406e34
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 + 0x47a300]
jns 0x4016cb
mov dword [0x420108], eax
jmp 0x4016d2
mov dword [ecx*4 + 0x47a2c0], 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 + 0x47a300], ecx
jmp 0x40237d
mov eax, dword [ecx*4 + 0x47a2c0]
mov dword [ecx*4 + 0x47a300], eax
cmp dword [esp + 0x3c], ebx
jge case.0x4015c7.52
mov eax, dword [0x420108]
mov dword [ecx*4 + 0x47a300], eax
jmp case.0x4015c7.52
mov ecx, dword [esp + 0x38]
push 4
mov edx, dword [ecx*4 + 0x47a300]
mov eax, edx
and eax, dword [esp + 0x40]
mov dword [ecx*4 + 0x47a300], eax
xor eax, eax
test edx, edx
pop ecx
cmove eax, ecx
mov eax, dword [esp + eax + 0x30]
jmp 0x403363
push dword [edx*4 + 0x47a300]
push edi
call fcn.00406d9d
jmp case.0x4015c7.52
mov eax, dword [0x472224]
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 [0x472228]
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.00406e34
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.00406e34
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.00406e34
add esp, 0xc
push esi
call fcn.0040746b
mov edi, eax
test edi, edi
je 0x40187b
push 0x5c
push edi
call fcn.00406d74
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.00406ae2
test eax, eax
je 0x401823
push esi
call fcn.00406439
jmp 0x401829
push esi
call fcn.00406419
test eax, eax
je 0x40185f
cmp eax, 0xb7
je 0x401846
push eax
push esi
push 0x4093f8
call fcn.00406e34
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.00406e34
inc ebx
jmp 0x40186a
push esi
push str.CreateDirectory:___s_
call fcn.00406e34
pop ecx
pop ecx
mov word [edi], bp
add edi, 2
test bp, bp
jne 0x4017f5
cmp dword [esp + 0x34], 0
push 0x410108
je 0x4018c2
push 0xffffffffffffffe6
call fcn.00406335
push esi
push 0x4d3000
call fcn.004073c1
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.00406e34
add esp, 0xc
jmp 0x401a3a
push 0xfffffffffffffff5
jmp 0x401660
push ebp
call fcn.004034fe
mov esi, eax
push esi
call fcn.00406d4d
test eax, eax
je 0x4018f6
push dword [esp + 0x34]
push esi
push 0x409500
call fcn.00406e34
add esp, 0xc
mov eax, dword [esp + 0x34]
jmp 0x403363
push dword [esp + 0x38]
push esi
push str.IfFileExists:
call fcn.00406e34
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.00406e34
pop ecx
pop ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401951
push 0x410108
push 0xffffffffffffffe3
jmp 0x401660
cmp dword [esp + 0x38], ebx
je 0x40197c
push edi
call fcn.00406d4d
test eax, eax
je 0x40197c
push ebp
push edi
call fcn.00406823
push 0x410108
push 0xffffffffffffffe4
call fcn.00406335
push esi
push 0x40959c
jmp 0x401985
push esi
push str.T_rT1Y_
xor ebx, ebx
inc ebx
call fcn.00406e34
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.00406d4d
test eax, eax
je 0x4019d4
add eax, 0x2c
push eax
push dword [esp + 0x18]
call fcn.004073c1
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.004072fd
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.00406e34
add esp, 0x10
push esi
call fcn.004076a7
mov edi, 0x40c108
push esi
test eax, eax
je 0x401a88
push edi
call fcn.004073c1
jmp 0x401a9f
push 0x4d3000
push edi
call fcn.004073c1
push eax
call fcn.00406cd4
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.004075e3
xor esi, esi
inc esi
mov eax, dword [esp + 0x18]
cmp eax, 3
jl 0x401ae5
push edi
call fcn.00406d4d
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.00407443
xor eax, eax
cmp dword [esp + 0x18], esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.004071c2
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401be1
cmp dword [esp + 0x18], ebx
jne 0x401bb5
push edi
push 0x409644
call fcn.00406e34
pop ecx
pop ecx
push section..ndata
push 0x414108
call fcn.004073c1
push edi
push section..ndata
call fcn.004073c1
push dword [esp + 0x44]
push 0x410108
call fcn.00406494
push 0x414108
push section..ndata
call fcn.004073c1
mov eax, dword [esp + 0x30]
sar eax, 3
push eax
push 0x410108
call fcn.0040734f
sub eax, 4
jne 0x401b87
push 0x409664
call fcn.00406e34
pop ecx
jmp 0x401aa8
sub eax, 1
je 0x401b9f
push 0x40969c
call fcn.00406e34
pop ecx
push edi
push 0xfffffffffffffffa
jmp 0x401600
push 0x409680
call fcn.00406e34
inc dword [0x47a308]
pop ecx
jmp 0x403361
mov esi, dword [esp + 0x14]
push esi
push 0xffffffffffffffe2
call fcn.00406335
mov ebp, dword [esp + 0x18]
push ebp
push edi
push 0x409610
call fcn.00406e34
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.00406335
inc dword [0x47a334]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.00403608
dec dword [0x47a334]
push edi
push eax
push str.File:
mov dword [esp + 0x2c], eax
call fcn.00406e34
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.00406494
push esi
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401c6e
push 0xffffffffffffffee
push edi
call fcn.00406494
push edi
push 0x4096e0
call fcn.00406e34
pop ecx
pop ecx
push 0x200010
push edi
call fcn.0040734f
jmp 0x401605
push ebp
call fcn.004034fe
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00406e34
pop ecx
pop ecx
push dword [esp + 0x34]
push esi
call fcn.00406f66
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.00406e34
add esp, 0xc
push dword [esp + 0x30]
push esi
call fcn.0040734f
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.004073c1
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 [0x40c100]
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, 0x40c108
push esi
push edi
call fcn.004073c1
mov eax, dword [0x40c100]
add eax, 4
push eax
push esi
call fcn.004073c1
mov eax, dword [0x40c100]
push edi
add eax, 4
push eax
jmp 0x402ff0
push dword [esp + 0x38]
push str.Exch:
call fcn.00406e34
pop ecx
pop ecx
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.00406494
push eax
jmp 0x401c81
test edx, edx
je 0x401fab
test esi, esi
jne 0x401f94
push str.Pop:
call fcn.00406e34
pop ecx
xor ebx, ebx
inc ebx
jmp case.0x4015c7.52
lea eax, [esi + 4]
push eax
push edi
call fcn.004073c1
mov eax, dword [esi]
mov dword [0x40c100], 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.00406494
mov ecx, dword [0x40c100]
mov dword [esi], ecx
mov dword [0x40c100], 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 [0x47a288]
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 [0x472234]
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 [0x420110], 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 [0x420120], eax
mov al, cl
and al, 1
mov byte [0x420127], 1
mov byte [0x420124], al
mov al, cl
and al, 2
and cl, 4
push 0x42012c
mov byte [0x420125], al
mov byte [0x420126], cl
call fcn.00406494
push 0x420110
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.00406e34
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 0x410108
push 0xffffffffffffffec
call fcn.00406335
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], 0x4d3000
cmovne eax, edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x60]
push eax
call fcn.0040729a
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.00406e34
add esp, 0x14
jmp 0x401f8c
test byte [esp + 0x64], 0x40
je 0x402372
push dword [esp + 0x98]
call fcn.00406afa
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [esp + 0x14]
push esi
push str.ExecShell:
call fcn.00406e34
jmp 0x401f04
push ebp
call fcn.004034fe
mov edi, eax
push edi
push str.Exec:_command__s_
call fcn.00406e34
pop ecx
pop ecx
push edi
push 0xffffffffffffffeb
call fcn.00406335
push edi
call fcn.00406f23
mov ebp, eax
push edi
test ebp, ebp
je 0x4023e6
push 0x40986c
call fcn.00406e34
pop ecx
pop ecx
cmp dword [esp + 0x38], ebx
je 0x4023e0
push ebp
call fcn.00406afa
cmp dword [esp + 0x34], ebx
jl 0x4023d8
push eax
push esi
call fcn.00406d9d
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.00406d4d
mov ebp, eax
test ebp, ebp
je 0x402414
push dword [ebp + 0x14]
push esi
call fcn.00406d9d
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.0040718d
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.0040718d
push 0xd
mov esi, eax
call fcn.0040718d
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.00406d9d
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.00406d9d
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 [0x47a2a0], 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.0040684f
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x402583
mov ebx, ebp
cmp dword [esp + 0x38], ebx
je 0x402563
push 0x410108
push dword [esp + 0x3c]
call fcn.00406335
call dword [esp + 0x20]
neg eax
sbb ebx, ebx
neg ebx
jmp 0x40259e
mov eax, dword [esp + 0x18]
push section..data
push 0x40c100
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.00406335
push edi
push ebp
push 0x4098b8
call fcn.00406e34
add esp, 0xc
cmp dword [esp + 0x3c], 0
jne case.0x4015c7.52
push esi
call fcn.004041fa
test eax, eax
je case.0x4015c7.52
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015c7.52
push 0x410108
push 0xfffffffffffffff6
call fcn.00406335
push edi
push 0x4098e8
jmp 0x401985
push 0x410108
push 0xffffffffffffffe7
call fcn.00406335
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.004076a7
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.00406e34
add esp, 0x20
lea eax, [esp + 0x1c]
xor esi, esi
inc esi
push eax
push 0x40a698
push esi
push ebp
push 0x40a6b8
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 0x40a6a8
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 0x4d3000
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 0x410108
sub eax, 0xc
push eax
call fcn.00406335
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.00406e34
add esp, 0xc
push esi
call fcn.00406d4d
test eax, eax
jne 0x4027ca
push ebp
push 0xfffffffffffffff9
call fcn.00406335
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.00406335
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 [0x47a314]
jmp case.0x4015c7.52
push str._RM_
mov edi, 0x410108
mov dword [esp + 0x14], ebp
push edi
mov dword [esp + 0x1c], ebp
call fcn.004073c1
push edi
mov ebx, 0x414108
push ebx
call fcn.004073c1
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 0x40c108
push str.WriteINIStr:
call fcn.00406e34
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.00406bb6
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 0x414108
push ebx
push str.DeleteRegValue:___s_s____s_
mov ebp, eax
call fcn.00406e34
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.00406e34
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.00406bb6
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.0040688b
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, 0x414108
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.00406e34
add esp, 0x14
jmp 0x402b1d
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00406e34
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 [0x414108], eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x38], 4
push str.WriteRegDWORD:___s_s____s__0x_08x_
call fcn.00406e34
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.00403608
push eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xa4]
push 0x80
push eax
call fcn.00406b3c
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.00406e34
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.00406e34
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.00406e34
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.00406d9d
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.004074cb
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.004071c2
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 [0x410108], 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 0x410108
push 0x414108
call fcn.00406a4f
add esp, 0xc
push 0x410108
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.004074cb
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.00406a6a
test eax, eax
js 0x402d54
push dword [esp + 0x10]
push 0x410108
push edi
call fcn.004072b2
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.004074cb
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.00406a6a
test eax, eax
js 0x402f32
mov ecx, dword [esp + 0x10]
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004071ef
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.00406d9d
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.004074cb
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.004074cb
test eax, eax
je case.0x4015c7.52
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015c7.52
push esi
call fcn.004074cb
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.00406d9d
lea eax, [esp + 0xc8]
push eax
push edi
call fcn.004073c1
jmp case.0x4015c7.52
push 0xfffffffffffffff0
call fcn.004034fe
mov esi, eax
push esi
mov dword [esp + 0x54], esi
call fcn.004076a7
test eax, eax
jne 0x403018
push 0xffffffffffffffed
call fcn.004034fe
push esi
call fcn.00407443
push 2
push 0x40000000
push esi
call fcn.004071c2
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 [0x47a248]
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.00403608
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.00406f01
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.004072b2
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.00403608
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.00406e34
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 0x410108
push edi
jmp 0x401660
cmp dword [esp + 0x1c], ebx
je 0x403183
push edx
push 0x409c6c
call fcn.00406e34
mov eax, dword [esp + 0x3c]
push eax
push 0x409c80
mov dword [0x4691c0], eax
call fcn.00406e34
add esp, 0x10
cmp dword [esp + 0x34], ebx
je 0x403177
call fcn.00405df9
jmp case.0x4015c7.52
push 1
call fcn.00406e66
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 [0x47a26c]
jae 0x401f8c
mov ecx, dword [esp + 0x38]
imul edi, ebp, 0x4018
add edi, dword [0x47a268]
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.00406494
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 [0x47a250]
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.00406494
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, 0x47a300
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.00406f01
push dword [esp + 0x20]
mov edi, dword [esp + 0x28]
jmp 0x40174d
push 5
call fcn.0040718d
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.004073c1
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 [0x43dd48]
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 [0x47a308], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret 4