Function at 0x401603
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
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2e8
mov eax, dword [0x42a564]
and dword [ebp + 0x70], 0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 9
pop ecx
lea edi, [ebp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x44]
mov esi, dword [ebp + 0x40]
shl ecx, 0xb
mov edi, section..ndata
add ecx, edi
mov dword [ebp + 0x6c], ecx
lea ecx, [ebp + 0x44]
mov ebx, edx
shl ebx, 0xb
mov dword [0x40b100], ecx
lea ecx, [esi - 2]
add ebx, edi
cmp ecx, 0x45
mov dword [ebp + 0x64], eax
ja case.0x40165a.68
jmp dword [ecx*4 + 0x402f6b]
mov eax, edx
jmp 0x402f61
push 0
push edx
call fcn.004051d7
mov eax, 0x7fffffff
jmp 0x402f61
inc dword [0x429534]
test eax, eax
je 0x401670
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401670
push edx
call fcn.00401373
dec eax
push 0
push eax
call fcn.0040138f
jmp 0x402f61
push 0
push edx
call fcn.004051d7
jmp case.0x40165a.68
xor ecx, ecx
call fcn.0040143a
cmp eax, 1
mov dword [ebp + 0x1c], edx
jg 0x4016c1
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x40165a.68
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x40165a.68
cmp dword [ebp + 0x4c], 0
jg 0x40170c
jne 0x4016f2
mov eax, edx
shl eax, 2
mov ecx, dword [eax + 0x42a620]
mov dword [eax + 0x42a5e0], ecx
xor ecx, ecx
inc ecx
call fcn.0040143a
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x1c], edx
mov dword [ecx*4 + 0x42a620], eax
jmp case.0x40165a.68
mov eax, edx
shl eax, 2
mov ecx, dword [eax + 0x42a5e0]
mov dword [eax + 0x42a620], ecx
jmp case.0x40165a.68
mov edx, dword [ebp + 0x4c]
lea edx, [edx*4 + 0x42a620]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp + 0x50]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 + 0x44]
jmp 0x402f61
mov eax, dword [ebp + 0x48]
push dword [eax*4 + 0x42a620]
push ebx
call fcn.004063a7
jmp case.0x40165a.68
mov eax, dword [0x429540]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x401770
push dword [ebp + 0x48]
push eax
call esi
mov edx, dword [ebp + 0x44]
mov eax, dword [0x42952c]
test eax, eax
je case.0x40165a.68
push edx
push eax
call esi
jmp case.0x40165a.68
push 0xfffffffffffffff0
pop esi
call fcn.00401457
push dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x40165a.68
mov dword [ebp + 0x70], 1
jmp case.0x40165a.68
push 0xfffffffffffffff0
pop esi
call fcn.00401457
mov ebx, eax
push ebx
call fcn.00405ffd
mov esi, eax
test esi, esi
je 0x401818
push 0x5c
push esi
call fcn.00405fa9
mov esi, eax
movzx edi, word [esi]
and word [esi], 0
test di, di
jne 0x4017ef
cmp dword [ebp + 0x4c], 0
je 0x4017ef
call fcn.004066f1
test eax, eax
je 0x4017ef
push ebx
call fcn.00405e51
jmp 0x4017f5
push ebx
call fcn.00405eab
test eax, eax
je 0x40180e
cmp eax, 0xb7
jne 0x40180b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40180e
inc dword [ebp + 0x70]
mov word [esi], di
inc esi
inc esi
test di, di
jne 0x4017c2
cmp dword [ebp + 0x48], 0
je 0x401847
push 0xffffffffffffffe6
call fcn.00401429
push ebx
push 0x436000
call fcn.00406460
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x40165a.68
inc dword [ebp + 0x70]
jmp case.0x40165a.68
push 0xfffffffffffffff5
call fcn.00401429
jmp case.0x40165a.68
xor esi, esi
call fcn.00401457
push eax
call fcn.0040654c
test eax, eax
je 0x401ce5
mov eax, dword [ebp + 0x48]
jmp 0x402f61
push 0xffffffffffffffd0
pop esi
call fcn.00401457
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401457
push 0x13
pop esi
mov ebx, eax
call fcn.00401457
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40189c
push 0xffffffffffffffe3
jmp 0x401849
cmp dword [ebp + 0x4c], 0
je 0x4017a0
push edi
call fcn.0040654c
test eax, eax
je 0x4017a0
push ebx
push edi
call fcn.00406c6a
push 0xffffffffffffffe4
jmp 0x401849
xor esi, esi
call fcn.00401457
mov edi, dword [ebp + 0x6c]
mov esi, eax
lea eax, [ebp + 0x7c]
push eax
push edi
mov ebx, 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401906
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jbe 0x401911
cmp word [eax], 0
je 0x401911
push esi
call fcn.0040654c
test eax, eax
je 0x401906
add eax, 0x2c
push eax
push dword [ebp + 0x7c]
call fcn.00406460
jmp 0x401911
and word [edi], 0
mov dword [ebp + 0x70], 1
cmp dword [ebp + 0x4c], 0
jne case.0x40165a.68
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x40165a.68
or esi, 0xffffffff
call fcn.00401457
lea ecx, [ebp + 0x7c]
push ecx
push ebx
push 0x400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x40165a.68
and word [ebx], 0
mov dword [ebp + 0x70], 1
jmp case.0x40165a.68
push 0xffffffffffffffef
pop esi
call fcn.00401457
push eax
push ebx
call fcn.00406129
jmp 0x401798
push 0x31
pop esi
call fcn.00401457
mov esi, eax
mov eax, dword [ebp + 0x44]
and eax, 7
push esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x7c], eax
call fcn.00405fc8
test eax, eax
push esi
mov esi, 0x40b168
je 0x4019a0
push esi
call fcn.00406460
jmp 0x4019b7
push 0x436000
push esi
call fcn.00406460
push eax
call fcn.00406751
push eax
call sub.KERNEL32.dll_lstrcatW
push esi
call fcn.0040649d
mov ebx, 0x40c168
cmp dword [ebp + 0x7c], 3
jl 0x4019f9
push esi
call fcn.0040654c
xor ecx, ecx
test eax, eax
je 0x4019e4
lea ecx, [ebp + 0x54]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x7c], 0
jne 0x401a05
push esi
call fcn.004060d4
xor eax, eax
cmp dword [ebp + 0x7c], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.004060fa
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x401a8e
cmp dword [ebp + 0x7c], 0
jne 0x401a70
push edi
push ebx
call fcn.00406460
push esi
push edi
call fcn.00406460
push dword [ebp + 0x5c]
push 0x40b968
call fcn.0040687a
push ebx
push edi
call fcn.00406460
mov eax, dword [ebp + 0x44]
sar eax, 3
push eax
push 0x40b968
call fcn.00405f45
sub eax, 4
je 0x4019c2
dec eax
je 0x401a83
push esi
push 0xfffffffffffffffa
jmp 0x40166b
push dword [ebp + 0x68]
push 0xffffffffffffffe2
call fcn.004051d7
cmp dword [ebp + 0x7c], 2
jmp 0x40179a
inc dword [0x42a628]
jmp 0x402f5f
push dword [ebp + 0x68]
push 0xffffffffffffffea
call fcn.004051d7
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x4c]
inc dword [0x42a654]
xor edi, edi
cmp dword [ebp + 0x40], 0x15
push edi
push edi
push dword [ebp + 0x2c]
push ecx
push eax
jne 0x401aba
push 1
jmp 0x401abb
push edi
call fcn.004032d8
dec dword [0x42a654]
cmp dword [ebp + 0x54], 0xffffffff
mov ebx, edx
mov dword [ebp + 0x18], eax
jne 0x401ad7
cmp dword [ebp + 0x58], 0xffffffff
je 0x401ae6
lea eax, [ebp + 0x54]
push eax
push edi
push eax
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jg case.0x40165a.68
jl 0x401b03
cmp dword [ebp + 0x18], 0
jae case.0x40165a.68
cmp dword [ebp + 0x18], 0xfffffffe
jne 0x401b21
cmp ebx, 0xffffffff
jne 0x401b21
push 0xffffffffffffffe9
push esi
call fcn.0040687a
push dword [ebp + 0x68]
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401b29
push 0xffffffffffffffee
push esi
call fcn.0040687a
push 0x200010
push esi
call fcn.00405f45
jmp 0x401670
cmp dword [0x40b014], 0xffffffff
mov dword [ebp + 0x70], 1
je 0x401b52
cmp dword [0x42a5c0], 0
jmp 0x401bba
cmp dword [0x42a5c0], 0
je case.0x40165a.68
xor esi, esi
call fcn.00401457
mov edi, eax
push edi
call fcn.00405fc8
test eax, eax
jne 0x401b9f
push 0x438800
mov esi, 0x40b968
push esi
call fcn.00406460
push esi
call fcn.004067ac
push eax
push esi
call fcn.00406460
push esi
push 0x4092cc
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
call fcn.0040649d
push 3
push 0x80000000
push edi
call fcn.004060fa
mov dword [0x40b014], eax
cmp eax, 0xffffffff
je case.0x40165a.68
and dword [ebp + 0x70], 0
jmp case.0x40165a.68
xor esi, esi
call fcn.00401457
push dword [ebp + 0x48]
push eax
call fcn.00406c96
jmp case.0x40165a.68
push 0x31
pop esi
call fcn.00401457
push dword [ebp + 0x44]
push eax
call fcn.00405f45
test eax, eax
je 0x4017a0
cmp eax, dword [ebp + 0x4c]
jne 0x401c04
mov eax, dword [ebp + 0x50]
jmp 0x402f61
cmp eax, dword [ebp + 0x54]
jne case.0x40165a.68
mov eax, dword [ebp + 0x58]
jmp 0x402f61
push 0xfffffffffffffff0
pop esi
jmp 0x401bcb
xor esi, esi
inc esi
call fcn.00401457
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x40174d
push 2
pop ecx
call fcn.0040143a
push 3
pop ecx
mov esi, eax
mov dword [ebp + 0x34], edx
call fcn.0040143a
mov dword [ebp + 0x7c], esi
xor esi, esi
inc esi
mov edi, eax
mov dword [ebp + 0x1c], edx
call fcn.00401457
push eax
mov dword [ebp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenW
and word [ebx], 0
cmp dword [ebp + 0x34], 0
mov esi, eax
je 0x401c6b
mov esi, dword [ebp + 0x7c]
test esi, esi
je case.0x40165a.68
test edi, edi
jge 0x401c7f
add edi, eax
js case.0x40165a.68
cmp edi, eax
jle 0x401c85
mov edi, eax
mov eax, dword [ebp + 0x1c]
lea eax, [eax + edi*2]
push eax
push ebx
call fcn.00406460
test esi, esi
jge 0x401ca7
push ebx
call sub.KERNEL32.dll_lstrlenW
add esi, eax
jns 0x401ca7
and dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x7c]
cmp esi, 0x400
jge case.0x40165a.68
and word [ebx + esi*2], 0
jmp case.0x40165a.68
push 0x20
pop esi
call fcn.00401457
push 0x31
pop esi
mov edi, eax
call fcn.00401457
cmp dword [ebp + 0x54], 0
push eax
push edi
jne 0x401ced
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401bfc
mov eax, dword [ebp + 0x4c]
jmp 0x402f61
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401cdd
xor esi, esi
inc esi
call fcn.00401457
push 0x400
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401d22
cmp dword [ebp + 0x4c], 0
je 0x401d29
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401d29
and word [ebx], 0
mov dword [ebp + 0x70], esi
and word [ebx + 0x7fe], 0
jmp case.0x40165a.68
mov esi, dword [ebp + 0x58]
xor ecx, ecx
call fcn.0040143a
xor ecx, ecx
inc ecx
mov edi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
test esi, esi
mov dword [ebp + 0x1c], edx
jne 0x401d66
cmp edi, eax
jl 0x401bfc
jle 0x401ce5
mov eax, dword [ebp + 0x54]
jmp 0x402f61
cmp edi, eax
jb 0x401bfc
jbe 0x401ce5
jmp 0x401d5e
xor ecx, ecx
inc ecx
call fcn.0040143a
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
mov ecx, eax
mov eax, dword [ebp + 0x50]
cmp eax, 0xd
mov dword [ebp + 0x1c], edx
ja case.default.0x401d98
jmp dword [eax*4 + 0x403083]
add esi, ecx
jmp case.default.0x401d98
sub esi, ecx
jmp case.default.0x401d98
imul ecx, esi
mov esi, ecx
jmp case.default.0x401d98
test ecx, ecx
je 0x401db9
mov eax, esi
cdq
idiv ecx
jmp 0x401dd7
xor esi, esi
mov dword [ebp + 0x70], 1
jmp case.default.0x401d98
or ecx, esi
jmp 0x401daa
and ecx, esi
jmp 0x401daa
xor ecx, esi
jmp 0x401daa
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401d98
test esi, esi
jne 0x401de3
test ecx, ecx
je 0x401dec
xor esi, esi
inc esi
jmp case.default.0x401d98
test esi, esi
jne 0x401ddf
xor esi, esi
jmp case.default.0x401d98
test ecx, ecx
je 0x401db9
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401d98
shl esi, cl
jmp case.default.0x401d98
sar esi, cl
jmp case.default.0x401d98
shr esi, cl
push esi
jmp 0x40174d
xor esi, esi
inc esi
call fcn.00401457
push 2
pop ecx
mov esi, eax
call fcn.0040143a
push eax
push esi
push ebx
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp case.0x40165a.68
mov eax, dword [ebp + 0x4c]
test eax, eax
mov esi, dword [0x40b104]
je 0x401e90
dec eax
test esi, esi
je 0x401e4f
test eax, eax
mov esi, dword [esi]
jne 0x401e40
test esi, esi
jne 0x401e63
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.0040687a
push eax
jmp 0x401b2f
lea edi, [esi + 4]
push edi
mov esi, 0x40b168
push esi
call fcn.00406460
mov eax, dword [0x40b104]
add eax, 4
push eax
push edi
call fcn.00406460
mov eax, dword [0x40b104]
push esi
add eax, 4
push eax
jmp 0x402c27
cmp dword [ebp + 0x48], 0
je 0x401eb5
test esi, esi
je 0x4017a0
lea eax, [esi + 4]
push eax
push ebx
call fcn.00406460
mov eax, dword [esi]
mov dword [0x40b104], eax
push esi
jmp 0x402371
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 0x44]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.0040687a
mov eax, dword [0x40b104]
mov dword [esi], eax
mov dword [0x40b104], esi
jmp case.0x40165a.68
push 3
pop ecx
call fcn.0040143a
push 4
pop ecx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x2c], eax
call fcn.0040143a
test byte [ebp + 0x58], 1
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x7c], eax
je 0x401f0f
push 0x33
pop esi
call fcn.00401457
mov dword [ebp + 0x2c], eax
test byte [ebp + 0x58], 2
je 0x401f20
push 0x44
pop esi
call fcn.00401457
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x40], 0x23
jne 0x401f75
xor ecx, ecx
inc ecx
call fcn.0040143a
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
mov ecx, dword [ebp + 0x58]
sar ecx, 2
mov dword [ebp + 0x1c], edx
je 0x401f65
lea edx, [ebp + 0x68]
push edx
push ecx
push 0
push dword [ebp + 0x7c]
push dword [ebp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x401fac
push dword [ebp + 0x7c]
push dword [ebp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401fa9
xor esi, esi
inc esi
call fcn.00401457
push 0x12
pop esi
mov edi, eax
call fcn.00401457
mov cx, word [eax]
neg cx
sbb ecx, ecx
and ecx, eax
mov ax, word [edi]
neg ax
push ecx
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x2c]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x44], 0
jl case.0x40165a.68
push dword [ebp + 0x68]
jmp 0x40174d
xor ecx, ecx
call fcn.0040143a
push eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x401860
push 2
pop ecx
call fcn.0040143a
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
push esi
push eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401c28
mov ecx, dword [ebp + 0x48]
mov eax, dword [0x42a5a8]
lea esi, [eax + ecx]
xor ecx, ecx
call fcn.0040143a
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x40165a.68
test word [ebp + 0x50], 0x100
je 0x402032
push 2
pop ecx
call fcn.0040143a
mov dword [ebp + 0x1c], edx
jmp 0x40203c
push dword [ebp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x50]
mov dword [ebp + 0x7c], eax
mov eax, ecx
shr eax, 0x1f
mov dword [ebp + 0x3c], eax
mov eax, ecx
shr eax, 0x1e
mov esi, ecx
mov edi, ecx
and esi, 3
and eax, 1
and edi, 4
test ecx, 0x10000
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x68], eax
je 0x402077
push 0x11
pop esi
call fcn.00401457
mov esi, dword [ebp + 0x34]
jmp 0x40207b
movzx eax, word [ebp + 0x48]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x50]
and eax, 0xfef0
push eax
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x68]
push eax
mov eax, dword [ebp + 0x28]
imul eax, dword [ebp + 0x3c]
push eax
neg edi
push esi
push dword [ebp + 0x1c]
sbb edi, edi
and edi, dword [0x42a568]
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
push edi
push esi
push 0x172
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4020da
test esi, esi
jne 0x4020da
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp + 0x44], 0
jl case.0x40165a.68
push edi
jmp 0x40174d
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
pop ecx
mov esi, eax
call fcn.0040143a
push 0x48
push 0x5a
push esi
mov edi, eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp + 0x64]
neg eax
mov dword [0x40b108], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.0040143a
push dword [ebp + 0x48]
mov dword [0x40b118], eax
mov al, byte [ebp + 0x54]
mov cl, al
and cl, 1
mov byte [0x40b11c], cl
mov cl, al
and cl, 2
and al, 4
push 0x40b124
mov dword [ebp + 0x1c], edx
mov byte [0x40b11d], cl
mov byte [0x40b11e], al
mov byte [0x40b11f], 1
call fcn.0040687a
push 0x40b108
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x401c28
xor ecx, ecx
call fcn.0040143a
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
cmp dword [ebp + 0x50], 0
push eax
mov dword [ebp + 0x1c], edx
push esi
jne 0x4021a2
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40165a.68
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x40165a.68
xor esi, esi
call fcn.00401457
push 0x31
pop esi
mov edi, eax
call fcn.00401457
push 0x22
pop esi
mov dword [ebp + 0x7c], eax
call fcn.00401457
push 0x15
pop esi
mov ebx, eax
call fcn.00401457
push 0xffffffffffffffec
call fcn.00401429
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp], eax
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0xc], eax
mov ax, word [ebx]
neg ax
mov dword [ebp - 4], 0x436000
sbb eax, eax
and eax, ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405f0b
test eax, eax
je 0x4017a0
test byte [ebp - 0x18], 0x40
je case.0x40165a.68
push dword [ebp + 0x1c]
call fcn.0040668c
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x40165a.68
xor esi, esi
call fcn.00401457
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.004051d7
push esi
call fcn.00405ec8
mov esi, eax
test esi, esi
je 0x4017a0
cmp dword [ebp + 0x4c], 0
je 0x40228d
push esi
call fcn.0040668c
cmp dword [ebp + 0x48], 0
jl 0x402282
push eax
push dword [ebp + 0x6c]
call fcn.004063a7
jmp 0x40228d
test eax, eax
je 0x40228d
mov dword [ebp + 0x70], 1
push esi
jmp 0x402239
push 2
pop esi
call fcn.00401457
push eax
call fcn.0040654c
mov esi, eax
test esi, esi
je 0x4022b7
push dword [esi + 0x14]
push dword [ebp + 0x6c]
call fcn.004063a7
push dword [esi + 0x18]
jmp 0x40174d
mov eax, dword [ebp + 0x6c]
and word [ebx], 0
and word [eax], 0
jmp 0x4017a0
push 0xffffffffffffffee
pop esi
call fcn.00401457
mov edi, eax
lea eax, [ebp + 0x3c]
push eax
push edi
push 0xc
call fcn.004065e3
call eax
and word [ebx], 0
mov esi, eax
mov eax, dword [ebp + 0x6c]
and word [eax], 0
test esi, esi
mov dword [ebp + 0x70], 1
je case.0x40165a.68
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x7c], eax
je case.0x40165a.68
push 0xd
call fcn.004065e3
push 0xe
mov dword [ebp + 0x34], eax
call fcn.004065e3
push dword [ebp + 0x7c]
mov dword [ebp + 0x68], eax
push esi
push 0
push edi
call dword [ebp + 0x34]
test eax, eax
je 0x40236e
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x4092c8
push dword [ebp + 0x7c]
call dword [ebp + 0x68]
test eax, eax
je 0x40236e
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x50]
push dword [eax + ecx*4 + 8]
push ebx
call fcn.004063a7
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x1c]
push dword [ecx + eax*4 + 0xc]
push dword [ebp + 0x6c]
call fcn.004063a7
and dword [ebp + 0x70], 0
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x40165a.68
cmp dword [0x42a660], 0
mov dword [ebp + 0x70], 1
jl 0x402448
push 0xfffffffffffffff0
pop esi
call fcn.00401457
xor esi, esi
inc esi
mov ebx, eax
call fcn.00401457
cmp dword [ebp + 0x54], 0
mov dword [ebp + 0x7c], eax
je 0x4023b8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4023c9
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x402441
push dword [ebp + 0x7c]
push esi
call fcn.00406650
mov ebx, eax
test ebx, ebx
je 0x402413
and dword [ebp + 0x70], 0
cmp dword [ebp + 0x4c], 0
je 0x4023f9
push dword [ebp + 0x4c]
call fcn.00401429
call ebx
test eax, eax
je 0x40241d
mov dword [ebp + 0x70], 1
jmp 0x40241d
push section..data
push 0x40b104
push edi
push 0x400
push dword [ebp + 0x64]
call ebx
add esp, 0x14
jmp 0x40241d
push dword [ebp + 0x7c]
push 0xfffffffffffffff7
call fcn.004051d7
cmp dword [ebp + 0x50], 0
jne case.0x40165a.68
push esi
call fcn.00403f87
test eax, eax
je case.0x40165a.68
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x40165a.68
push 0xfffffffffffffff6
jmp 0x401849
push 0xffffffffffffffe7
jmp 0x401849
push 0xfffffffffffffff0
pop esi
call fcn.00401457
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 0x6c], eax
call fcn.00401457
push 2
pop esi
mov dword [ebp + 0x1c], eax
call fcn.00401457
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x20], eax
call fcn.00401457
push 0x45
pop esi
mov dword [ebp + 0x3c], eax
call fcn.00401457
push dword [ebp + 0x1c]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x54]
mov ecx, eax
mov ebx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0xfff
and eax, 0xffff
sar edi, 0xc
mov dword [ebp + 0x2c], ecx
and ebx, 0x8000
and edi, 7
mov dword [ebp + 0x68], eax
call fcn.00405fc8
test eax, eax
jne 0x4024c3
push 0x21
pop esi
call fcn.00401457
lea eax, [ebp + 0x7c]
push eax
push 0x409af8
push 1
push 0
push 0x409b08
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402590
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x34]
push edx
push 0x409b18
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x402583
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test ebx, ebx
mov esi, eax
jne 0x40251e
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push 0x436000
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x40252c
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp + 0x3c]
cmp word [ecx], 0
je 0x40254e
push dword [ebp + 0x2c]
mov eax, dword [ebp + 0x7c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 0x7c]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jl 0x40257a
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x6c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge 0x40259e
mov dword [ebp + 0x70], 1
push 0xfffffffffffffff0
jmp 0x401849
push 0xfffffffffffffff4
jmp 0x401849
xor esi, esi
call fcn.00401457
push 0x11
pop esi
mov edi, eax
call fcn.00401457
push 0x23
pop esi
mov ebx, eax
call fcn.00401457
push edi
mov esi, eax
call fcn.0040654c
test eax, eax
jne 0x4025da
push 0
push 0xfffffffffffffff9
call fcn.004051d7
jmp 0x4017a0
mov eax, dword [ebp + 0x64]
push edi
mov dword [ebp], eax
mov dword [ebp + 4], 2
call sub.KERNEL32.dll_lstrlenW
and word [edi + eax*2 + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
and word [ebx + eax*2 + 2], 0
mov ax, word [ebp + 0x4c]
push esi
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x1a], esi
mov word [ebp + 0x10], ax
call fcn.004051d7
lea eax, [ebp]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x40165a.68
jmp 0x4025cc
cmp edx, 0xbadf00d
jne 0x401e4f
inc dword [0x42a634]
jmp case.0x40165a.68
xor ebx, ebx
xor edi, edi
cmp edx, ebx
mov dword [ebp + 0x7c], ebx
je 0x402657
xor esi, esi
call fcn.00401457
mov edi, eax
cmp dword [ebp + 0x48], ebx
je 0x402667
push 0x11
pop esi
call fcn.00401457
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x54], ebx
je 0x402676
push 0x22
pop esi
call fcn.00401457
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401457
push eax
push ebx
push dword [ebp + 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401798
xor esi, esi
inc esi
mov dword [ebp + 0x7c], 0xa
call fcn.00401457
push 0x12
pop esi
mov edi, eax
call fcn.00401457
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 0x1c], eax
call fcn.00401457
push eax
push 0x3ff
push ebx
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0xa
jmp 0x401948
cmp dword [ebp + 0x54], 0
mov edi, dword [ebp + 0x48]
jne 0x402707
push 2
pop eax
call fcn.004014a1
mov edi, eax
test edi, edi
je 0x4017a0
push 0x33
pop esi
call fcn.00401457
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40271f
push 0x22
pop esi
call fcn.00401457
mov ecx, dword [ebp + 0x54]
sar ecx, 1
push ecx
push edi
mov esi, eax
call fcn.004015c3
mov esi, eax
test esi, esi
je case.0x40165a.68
jmp 0x4017a0
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x5c]
push 2
pop esi
mov edi, edx
mov dword [ebp + 0x34], eax
call fcn.00401457
push 0x11
pop esi
mov dword [ebp + 0x68], eax
call fcn.00401457
lea ecx, [ebp + 0x1c]
push ecx
push 0x100022
push eax
mov eax, edi
mov dword [ebp + 0x70], 1
call fcn.0040148f
push eax
call fcn.004062fb
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, dword [ebp + 0x1c]
je case.0x40165a.68
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x7c], 1
mov ebx, 0x40c168
jne 0x40279f
push 0x23
pop esi
call fcn.00401457
push ebx
call sub.KERNEL32.dll_lstrlenW
lea eax, [eax + eax + 2]
xor esi, esi
cmp dword [ebp + 0x7c], 4
jne 0x4027b8
push 3
pop ecx
call fcn.0040143a
push 4
mov dword [0x40c168], eax
mov dword [ebp + 0x3c], edx
pop eax
cmp dword [ebp + 0x7c], 3
jne 0x4027e2
cmp dword [0x42a5c0], esi
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push 0x1800
push ebx
push esi
push ecx
push eax
je 0x4027dc
push 1
jmp 0x4027dd
push esi
call fcn.004032d8
push eax
push ebx
push dword [ebp + 0x34]
push esi
push dword [ebp + 0x68]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4027f9
mov dword [ebp + 0x70], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x40165a.68
mov eax, 0x20019
call fcn.004014a1
push 0x33
pop esi
mov edi, eax
call fcn.00401457
xor esi, esi
cmp edi, esi
mov word [ebx], si
je 0x4017a0
lea ecx, [ebp + 0x1c]
push ecx
push ebx
lea ecx, [ebp + 0x7c]
push ecx
push esi
push eax
push edi
mov dword [ebp + 0x1c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x40287e
cmp dword [ebp + 0x7c], 4
je 0x402866
cmp dword [ebp + 0x7c], ecx
je 0x402857
cmp dword [ebp + 0x7c], 2
jne 0x40287e
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x70], eax
mov word [ebx + 0x7fe], si
jmp 0x4027f9
push dword [ebx]
xor eax, eax
cmp dword [ebp + 0x54], esi
push ebx
sete al
mov dword [ebp + 0x70], eax
call fcn.004063a7
jmp 0x4027f9
mov word [ebx], si
mov dword [ebp + 0x70], ecx
jmp 0x4027f9
mov eax, 0x20019
call fcn.004014a1
push 3
pop ecx
mov edi, eax
call fcn.0040143a
xor esi, esi
cmp edi, esi
mov dword [ebp + 0x1c], edx
mov word [ebx], si
je 0x4017a0
cmp dword [ebp + 0x54], esi
mov ecx, 0x3ff
mov dword [ebp + 0x7c], ecx
je 0x4028c6
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40285d
push esi
push esi
push esi
push esi
lea ecx, [ebp + 0x7c]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40285d
mov dword [ebp + 0x70], 1
jmp 0x40285d
push ebx
call fcn.004063c0
test eax, eax
je case.0x40165a.68
push eax
jmp 0x402239
push 0xffffffffffffffed
pop esi
call fcn.00401457
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push eax
call fcn.004060fa
cmp eax, 0xffffffff
jne 0x401c28
and word [ebx], 0
jmp 0x4017a0
mov eax, dword [ebp + 0x4c]
xor ecx, ecx
cmp esi, 0x3a
sete cl
test eax, eax
mov dword [ebp + 0x7c], eax
mov edi, ecx
je 0x402950
xor ecx, ecx
inc ecx
call fcn.0040143a
mov word [0x40b968], ax
xor eax, eax
test edi, edi
sete al
mov dword [ebp + 0x1c], edx
inc eax
jmp 0x40297c
cmp esi, 0x3a
jne 0x402980
push 0x21
pop esi
call fcn.00401457
push 0x400
mov esi, 0x40b968
push esi
push 0x40c168
call fcn.00406482
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x402992
push 0x11
pop esi
call fcn.00401457
push eax
call sub.KERNEL32.dll_lstrlenW
mov esi, eax
add esi, esi
cmp word [ebx], 0
je 0x4017a0
push ebx
call fcn.004063c0
or edi, dword [ebp + 0x7c]
mov ebx, eax
jne 0x4029be
cmp dword [ebp + 0x50], 0
je 0x4029be
push ebx
push ebx
call fcn.004061db
test eax, eax
jl 0x4017a0
push esi
push 0x40b968
push ebx
call fcn.004061ac
jmp 0x401798
push 2
pop ecx
xor esi, esi
mov dword [ebp + 0x34], esi
mov dword [ebp - 0x20], ecx
call fcn.0040143a
cmp eax, 1
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x1c], eax
jl case.0x40165a.68
mov ecx, 0x3ff
cmp eax, ecx
jle 0x4029fa
mov dword [ebp + 0x1c], ecx
xor edi, edi
cmp word [ebx], di
je 0x402b64
push ebx
mov dword [ebp + 0x68], edi
call fcn.004063c0
cmp dword [ebp + 0x1c], edi
mov dword [ebp + 0x2c], eax
jle 0x402b64
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp + 0x40], 0x3b
jne 0x402af8
push edi
lea eax, [ebp + 0x3c]
push eax
push 2
pop eax
sub eax, dword [ebp + 0x50]
push eax
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b64
mov ecx, dword [ebp + 0x3c]
cmp ecx, edi
je 0x402b64
cmp dword [ebp + 0x50], edi
movzx ax, byte [ebp + 0x7c]
movzx eax, ax
mov dword [ebp - 0x20], ecx
mov dword [ebp + 0x64], eax
jne 0x402b25
push 1
lea eax, [ebp + 0x64]
push eax
push ecx
lea eax, [ebp + 0x7c]
push eax
push 8
push edi
call ebx
test eax, eax
jne 0x402b20
mov esi, dword [ebp - 0x20]
neg esi
dec dword [ebp + 0x3c]
mov eax, 0xfffd
mov dword [ebp + 0x64], eax
je 0x402ac1
dec dword [ebp - 0x20]
push 1
push edi
inc esi
push esi
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x7c]
push eax
push 8
push edi
call ebx
test eax, eax
je 0x402a8a
mov eax, dword [ebp + 0x64]
mov esi, dword [ebp + 0x34]
cmp dword [ebp + 0x50], edi
jne 0x402b25
cmp word [ebp + 0x68], 0xd
je 0x402b36
cmp word [ebp + 0x68], 0xa
je 0x402b36
mov ecx, dword [ebp + 0x6c]
mov word [ecx + esi*2], ax
movzx ecx, ax
inc esi
cmp ax, di
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x68], ecx
je 0x402b64
cmp esi, dword [ebp + 0x1c]
jl 0x402a20
jmp 0x402b64
cmp dword [ebp + 0x50], edi
jne 0x402b0e
cmp esi, edi
jne 0x402b0e
push edi
push dword [ebp + 0x2c]
call fcn.004061db
test eax, eax
jl 0x402b64
push 2
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x2c]
call fcn.0040617d
test eax, eax
je 0x402b64
mov eax, dword [ebp + 0x64]
jmp 0x402ac4
movzx eax, ax
push eax
push dword [ebp + 0x6c]
call fcn.004063a7
jmp 0x402f5f
cmp word [ebp + 0x68], ax
je 0x402b52
cmp ax, 0xd
je 0x402b48
cmp ax, 0xa
jne 0x402b52
mov ecx, dword [ebp + 0x6c]
mov word [ecx + esi*2], ax
inc esi
jmp 0x402b64
mov eax, dword [ebp - 0x20]
push 1
push edi
neg eax
push eax
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x6c]
mov word [eax + esi*2], di
cmp esi, edi
jmp 0x40179a
cmp word [ebx], 0
je case.0x40165a.68
push 2
pop ecx
call fcn.0040143a
push dword [ebp + 0x50]
mov dword [ebp + 0x1c], edx
push 0
push eax
push ebx
call fcn.004063c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x48], 0
jl case.0x40165a.68
push eax
push dword [ebp + 0x6c]
jmp 0x40174e
push ebx
call fcn.004063c0
test eax, eax
je case.0x40165a.68
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x40165a.68
push dword [ebp + 0x6c]
call fcn.004063c0
test eax, eax
je 0x40194e
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40194e
jmp 0x402c1f
push 2
pop esi
call fcn.00401457
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402c16
mov eax, dword [ebp + 0x6c]
and word [eax], 0
jmp 0x402918
push eax
push dword [ebp + 0x6c]
call fcn.004063a7
lea eax, [ebp - 0x248]
push eax
push ebx
call fcn.00406460
jmp case.0x40165a.68
push 0xfffffffffffffff0
pop esi
mov dword [ebp + 0x28], 0xfffffd66
or ebx, 0xffffffff
call fcn.00401457
mov edi, eax
push edi
mov dword [ebp + 0x68], edi
call fcn.00405fc8
test eax, eax
jne 0x402c5a
push 0xffffffffffffffec
pop esi
call fcn.00401457
push edi
call fcn.004060d4
push 2
push 0x40000000
push edi
call fcn.004060fa
xor edi, edi
cmp eax, ebx
mov dword [ebp + 0x7c], eax
je 0x402d5c
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x3c], eax
je 0x402d2e
mov eax, dword [0x42a5d4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp + 0x1c], eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x402d2e
push edi
call fcn.00403205
push dword [ebp + 0x1c]
push ebx
call fcn.004031a9
push dword [ebp + 0x50]
push 0x40
call esi
mov esi, eax
cmp esi, edi
mov dword [ebp + 0x34], esi
je 0x402d13
cmp dword [0x42a5c0], edi
push dword [ebp + 0x58]
push dword [ebp + 0x50]
push esi
push edi
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
je 0x402ce5
push 1
jmp 0x402ce6
push edi
call fcn.004032d8
jmp 0x402d05
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, ebx
push eax
mov dword [ebp - 0x24], ecx
call fcn.004060b0
add esi, dword [ebp - 0x24]
cmp byte [esi], 0
jne 0x402ced
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x7c]
call fcn.004061ac
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or dword [ebp + 0x38], 0xffffffff
or dword [ebp + 0x3c], 0xffffffff
cmp dword [0x42a5c0], edi
push dword [ebp + 0x5c]
push edi
push edi
push dword [ebp + 0x7c]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
je 0x402d48
push 1
jmp 0x402d49
push edi
call fcn.004032d8
push dword [ebp + 0x7c]
mov ebx, edx
mov dword [ebp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
push 0xfffffffffffffff3
pop esi
jg 0x402d7d
jl 0x402d6a
cmp dword [ebp + 0x28], edi
jae 0x402d7d
push 0xffffffffffffffef
pop esi
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp + 0x70], 1
push esi
jmp 0x401849
xor ecx, ecx
call fcn.0040143a
mov edi, eax
cmp edi, dword [0x42a58c]
mov dword [ebp + 0x1c], edx
jae 0x4017a0
mov eax, dword [ebp + 0x4c]
mov esi, edi
imul esi, esi, 0x818
add esi, dword [0x42a588]
test eax, eax
jl 0x402dc7
mov ecx, dword [esi + eax*4]
jne 0x402dc1
add esi, 0x18
push esi
push dword [ebp + 0x6c]
jmp 0x402c27
push ecx
jmp 0x402ba5
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp + 0x4c], ecx
je 0x402de1
xor ecx, ecx
inc ecx
call fcn.0040143a
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x48], eax
jmp 0x402df4
push dword [ebp + 0x54]
lea eax, [esi + 0x18]
push eax
call fcn.0040687a
or dword [esi + 8], 0x100
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
mov dword [esi + eax*4], ecx
cmp dword [ebp + 0x50], 0
je case.0x40165a.68
push edi
call fcn.0040117d
jmp case.0x40165a.68
xor ecx, ecx
call fcn.0040143a
cmp eax, 0x20
mov dword [ebp + 0x1c], edx
jae 0x4017a0
xor esi, esi
cmp dword [ebp + 0x50], esi
je 0x402e4e
cmp dword [ebp + 0x4c], esi
je 0x402e43
push eax
call fcn.0040129d
push esi
push esi
call fcn.004011ef
jmp case.0x40165a.68
push esi
call fcn.004012e8
jmp 0x402ba4
cmp dword [ebp + 0x4c], esi
je 0x402e68
mov ecx, dword [ebp + 0x48]
mov edx, dword [0x42a56c]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x40165a.68
mov ecx, dword [0x42a56c]
push dword [ecx + eax*4 + 0x94]
push dword [ebp + 0x6c]
call fcn.0040687a
jmp case.0x40165a.68
mov eax, dword [ebp + 0x50]
sub eax, 0
je 0x402ed1
dec eax
jne case.0x40165a.68
push 2
pop ecx
call fcn.0040143a
push 4
pop ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
and dword [ebp + 0x7c], 0
movzx ecx, al
shr eax, 0x18
test esi, esi
mov dword [ebp + 0x1c], edx
jne 0x402ebc
mov esi, 0x42a620
push ecx
add eax, esi
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.004060b0
push dword [ebp + 0x7c]
jmp 0x402ba5
push 6
call fcn.004065e3
push 0x22
pop esi
mov edi, eax
call fcn.00401457
test edi, edi
je 0x402f1e
lea ecx, [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jl 0x402f1e
lea eax, [ebp + 0x7c]
push eax
push 0
push dword [ebp + 0x50]
lea eax, [ebp + 0x10]
push eax
call edi
test eax, eax
jl 0x402f1e
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
call fcn.00406460
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x40165a.68
mov eax, dword [ebp + 0x6c]
and word [eax], 0
mov dword [ebp + 0x70], 1
jmp case.0x40165a.68
mov eax, dword [0x425a00]
push 0
and eax, edx
push eax
push 0xb
push dword [ebp + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x44], 0
je case.0x40165a.68
push 0
push 0
push dword [ebp + 0x64]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x70]
add dword [0x42a628], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4