Function at 0x401560
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:
sub esp, 0x2e0
mov eax, dword [0x428d18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2f0]
xor ebp, ebp
push edi
push 7
pop ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x24], 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, 0xb
add edi, eax
shl esi, 0xb
add esi, eax
mov dword [esp + 0x90], ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], edi
mov dword [0x40a0c4], eax
mov ebx, ebp
mov eax, dword [esp + 0x2c]
add eax, 0xfffffffe
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
cmp eax, 0x43
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], edx
mov dword [esp + 0x18], esi
ja case.0x4015de.66
mov ebx, dword [esp + 0x14]
jmp dword [ebx*4 + 0x402e94]
mov eax, ecx
jmp 0x402e85
push ebp
push ecx
call fcn.00405ccb
mov eax, 0x7fffffff
jmp 0x402e85
inc dword [0x428d0c]
test eax, eax
je 0x4015f3
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4015f3
push ecx
call fcn.004030d9
dec eax
push ebp
push eax
call fcn.004013af
jmp 0x402e85
push ebp
push ecx
call fcn.00405ccb
jmp case.0x4015de.66
push ebp
call fcn.00402fdc
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015de.66
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015de.66
cmp dword [esp + 0x38], ebp
jne 0x401684
mov eax, dword [ecx*4 + 0x429de0]
push 1
mov dword [ecx*4 + 0x429da0], eax
call fcn.00402fdc
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [eax*4 + 0x429de0], ecx
jmp case.0x4015de.66
mov eax, dword [ecx*4 + 0x429da0]
mov dword [ecx*4 + 0x429de0], eax
jmp case.0x4015de.66
mov esi, dword [esp + 0x38]
xor ecx, ecx
push 4
pop eax
mov edx, dword [esi*4 + 0x429de0]
test edx, edx
cmove ecx, eax
mov eax, dword [esp + 0x3c]
and eax, edx
mov dword [esi*4 + 0x429de0], eax
mov eax, dword [esp + ecx + 0x30]
jmp 0x402e85
push dword [edx*4 + 0x429de0]
push edi
call fcn.00406607
jmp case.0x4015de.66
mov eax, dword [0x428d04]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4016eb
push edx
push eax
call esi
mov ecx, dword [esp + 0x30]
mov eax, dword [0x428d08]
test eax, eax
je case.0x4015de.66
push ecx
push eax
call esi
jmp case.0x4015de.66
push 0xfffffffffffffff0
call fcn.00403018
push dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015de.66
xor ebx, ebx
inc ebx
jmp 0x402e7d
push 0xfffffffffffffff0
call fcn.00403018
mov edi, eax
push edi
call fcn.00406ba9
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x401796
push 0x5c
push esi
call fcn.004065e8
mov esi, eax
xor eax, eax
movzx ebp, word [esi]
mov word [esi], ax
test bp, bp
jne 0x40176a
cmp dword [esp + 0x38], eax
je 0x40176a
call fcn.004064ec
test eax, eax
je 0x40176a
push edi
call fcn.00405dcf
jmp 0x401770
push edi
call fcn.00405daf
test eax, eax
je 0x401787
cmp eax, 0xb7
jne 0x401786
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401787
inc ebx
mov word [esi], bp
add esi, 2
test bp, bp
jne 0x40173c
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x34], 0
push 0x40a8c8
je 0x4017cd
push 0xffffffffffffffe6
call fcn.00405ccb
push edi
push 0x435000
call fcn.00406b12
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4015de.66
inc ebx
mov dword [esp + 0x10], ebx
jmp case.0x4015de.66
push 0xfffffffffffffff5
jmp 0x401625
push ebp
call fcn.00403018
push eax
call fcn.004065c1
mov ecx, dword [esp + 0x38]
test eax, eax
cmovne ecx, dword [esp + 0x34]
jmp case.0x4015de.2
push 0xffffffffffffffd0
call fcn.00403018
push 0xffffffffffffffdf
mov esi, eax
call fcn.00403018
push 0x13
mov edi, eax
call fcn.00403018
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401821
push 0x40a8c8
push 0xffffffffffffffe3
jmp 0x401625
cmp dword [esp + 0x38], ebp
je 0x40171b
push esi
call fcn.004065c1
test eax, eax
je 0x40171b
push edi
push esi
call fcn.00406214
push 0x40a8c8
push 0xffffffffffffffe4
jmp 0x401625
push ebp
call fcn.00403018
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x401874
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x40189c
mov eax, dword [esp + 0x1c]
cmp eax, edi
jbe 0x401898
cmp word [eax], bp
je 0x401898
push edi
call fcn.004065c1
test eax, eax
je 0x40186a
add eax, 0x2c
push eax
push dword [esp + 0x20]
call fcn.00406b12
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x38], ebp
jne 0x402e7d
push 0x400
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x402e7d
push 0xffffffffffffffff
call fcn.00403018
lea ecx, [esp + 0x54]
push ecx
push edi
push 0x400
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4015de.66
xor ebx, ebx
inc ebx
xor eax, eax
mov word [edi], ax
jmp 0x402e7d
push 0xffffffffffffffef
call fcn.00403018
push eax
push edi
call fcn.00406a4a
jmp 0x401713
push 0x31
call fcn.00403018
mov ebx, dword [esp + 0x30]
mov esi, eax
and ebx, 7
mov dword [esp + 0x18], esi
push esi
mov dword [esp + 0x20], ebx
call fcn.00406d94
mov edi, 0x40a0c8
push esi
test eax, eax
je 0x40192b
push edi
call fcn.00406b12
jmp 0x401942
push 0x435000
push edi
call fcn.00406b12
push eax
call fcn.00406548
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.00406cd8
xor esi, esi
inc esi
cmp ebx, 3
jl 0x401981
push edi
call fcn.004065c1
mov ecx, ebp
test eax, eax
je 0x40196d
lea ecx, [esp + 0x3c]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
add ebx, 0xfffffffd
or ebx, 0x80000000
and ebx, ecx
neg ebx
sbb ebx, ebx
inc ebx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x40198b
push edi
call fcn.00406b81
xor eax, eax
cmp ebx, esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406909
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x401a35
test ebx, ebx
jne 0x401a1a
push section..ndata
push 0x40b0c8
call fcn.00406b12
push edi
push section..ndata
call fcn.00406b12
push dword [esp + 0x44]
push 0x40a8c8
call fcn.00405e4d
push 0x40b0c8
push section..ndata
call fcn.00406b12
mov eax, dword [esp + 0x30]
sar eax, 3
push eax
push 0x40a8c8
call fcn.00406aa0
sub eax, 4
je 0x40194b
sub eax, 1
je 0x401a0f
push edi
push 0xfffffffffffffffa
jmp 0x4015ee
inc dword [0x429de8]
jmp 0x402e83
mov esi, dword [esp + 0x18]
push esi
push 0xffffffffffffffe2
call fcn.00405ccb
xor ebx, ebx
cmp dword [esp + 0x1c], 2
sete bl
jmp 0x402e7d
mov esi, dword [esp + 0x18]
push esi
push 0xffffffffffffffea
call fcn.00405ccb
mov ebx, dword [esp + 0x14]
inc dword [0x429e14]
push ebp
push ebp
push ebx
push dword [esp + 0x44]
call fcn.004032b4
dec dword [0x429e14]
cmp dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x14], eax
jne 0x401a6f
cmp dword [esp + 0x40], 0xffffffff
je 0x401a7d
lea eax, [esp + 0x3c]
push eax
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jns case.0x4015de.66
cmp eax, 0xfffffffe
jne 0x401aa6
push 0xffffffffffffffe9
push edi
call fcn.00405e4d
push esi
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401aae
push 0xffffffffffffffee
push edi
call fcn.00405e4d
push 0x200010
push edi
call fcn.00406aa0
jmp 0x4015f3
push ebp
call fcn.00403018
push dword [esp + 0x34]
push eax
call fcn.00406705
jmp case.0x4015de.66
push 0x31
call fcn.00403018
push dword [esp + 0x30]
push eax
call fcn.00406aa0
test eax, eax
je 0x40171b
cmp eax, dword [esp + 0x38]
jne 0x401afb
mov eax, dword [esp + 0x3c]
jmp 0x402e85
cmp eax, dword [esp + 0x40]
jne case.0x4015de.66
mov eax, dword [esp + 0x44]
jmp 0x402e85
push 0xfffffffffffffff0
jmp 0x401abf
push 1
call fcn.00403018
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x4016c9
push 2
call fcn.00402fdc
push 3
mov ebp, eax
mov esi, edx
call fcn.00402fdc
pop ecx
pop ecx
push 1
mov ebx, eax
call fcn.00403018
push eax
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
test esi, esi
mov word [edi], cx
cmove ebp, eax
test ebp, ebp
je case.0x4015de.66
test ebx, ebx
jns 0x401b6a
add ebx, eax
js case.0x4015de.66
cmp ebx, eax
cmovg ebx, eax
mov eax, dword [esp + 0x14]
lea eax, [eax + ebx*2]
push eax
push edi
call fcn.00406b12
test ebp, ebp
jns 0x401b89
push edi
call sub.KERNEL32.dll_lstrlenW
add ebp, eax
mov ebx, dword [esp + 0x10]
xor eax, eax
test ebp, ebp
cmovns eax, ebp
cmp eax, 0x400
jge 0x402e7d
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x402e7d
push 0x20
call fcn.00403018
push 0x31
mov esi, eax
call fcn.00403018
push eax
push esi
cmp dword [esp + 0x48], ebp
jne 0x401bd9
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401af2
mov eax, dword [esp + 0x38]
jmp 0x402e85
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401bc8
xor esi, esi
inc esi
push esi
call fcn.00403018
push 0x400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401c0f
cmp dword [esp + 0x38], ebp
je 0x401c18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401c18
xor eax, eax
mov ebx, esi
mov word [edi], ax
jmp 0x401c1c
mov ebx, dword [esp + 0x10]
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x402e7d
mov esi, dword [esp + 0x44]
push ebp
call fcn.00402fdc
push 1
mov edi, eax
call fcn.00402fdc
pop ecx
pop ecx
test esi, esi
jne 0x401c56
cmp edi, eax
jl 0x401af2
jle 0x401bd0
mov eax, dword [esp + 0x40]
jmp 0x402e85
cmp edi, eax
jb 0x401af2
jbe 0x401bd0
jmp 0x401c4d
xor ebx, ebx
inc ebx
push ebx
call fcn.00402fdc
push 2
mov esi, eax
call fcn.00402fdc
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, 0xd
ja case.default.0x401c85
jmp dword [eax*4 + 0x402fa4]
add esi, ecx
jmp case.default.0x401c85
sub esi, ecx
jmp case.default.0x401c85
imul esi, ecx
jmp case.default.0x401c85
test ecx, ecx
je 0x401ca6
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401ca8
mov esi, ebp
xor ebx, ebx
test ecx, ecx
sete bl
jmp 0x401cf9
or esi, ecx
jmp case.default.0x401c85
and esi, ecx
jmp case.default.0x401c85
xor esi, ecx
jmp case.default.0x401c85
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401c85
test esi, esi
je 0x401cd8
mov esi, ebx
jmp case.default.0x401c85
mov esi, ebp
jmp case.default.0x401c85
test esi, esi
je 0x401cd0
test ecx, ecx
je 0x401cd0
jmp 0x401ccc
test ecx, ecx
je 0x401ca6
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401ca8
shl esi, cl
jmp case.default.0x401c85
sar esi, cl
jmp case.default.0x401c85
shr esi, cl
mov ebx, dword [esp + 0x10]
push esi
push edi
call fcn.00406607
jmp 0x402e7d
push 1
call fcn.00403018
push 2
mov esi, eax
call fcn.00402fdc
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x4015de.66
mov eax, dword [esp + 0x38]
mov esi, dword [0x40a0c0]
test eax, eax
je 0x401d88
dec eax
test esi, esi
je 0x401d75
mov esi, dword [esi]
test eax, eax
jne 0x401d34
test esi, esi
je 0x401d75
add esi, 4
mov edi, 0x40a0c8
push esi
push edi
call fcn.00406b12
mov eax, dword [0x40a0c0]
add eax, 4
push eax
push esi
call fcn.00406b12
mov eax, dword [0x40a0c0]
push edi
add eax, 4
push eax
call fcn.00406b12
jmp case.0x4015de.66
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.00405e4d
push eax
jmp 0x401ab4
test edx, edx
je 0x401db1
test esi, esi
je 0x40171b
lea eax, [esi + 4]
push eax
push edi
call fcn.00406b12
mov eax, dword [esi]
push esi
mov dword [0x40a0c0], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015de.66
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x30]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405e4d
mov eax, dword [0x40a0c0]
mov dword [esi], eax
mov dword [0x40a0c0], esi
jmp case.0x4015de.66
push 3
call fcn.00402fdc
mov esi, eax
push 4
mov dword [esp + 0x24], esi
call fcn.00402fdc
mov ebx, eax
mov eax, dword [esp + 0x4c]
pop ecx
pop ecx
test al, 1
je 0x401e10
push 0x33
call fcn.00403018
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
test al, 2
je 0x401e1d
push 0x44
call fcn.00403018
mov ebx, eax
cmp dword [esp + 0x2c], 0x21
push 1
jne 0x401e75
call fcn.00402fdc
push 2
mov dword [esp + 0x24], eax
call fcn.00402fdc
pop ecx
pop ecx
mov ecx, dword [esp + 0x44]
sar ecx, 2
test ecx, ecx
je 0x401e66
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push ebx
push esi
push eax
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb ebx, ebx
mov eax, dword [esp + 0x18]
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x401ea4
push ebx
push esi
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401ea0
call fcn.00403018
push 0x12
mov esi, eax
call fcn.00403018
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 ebx
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x30], ebp
jl case.0x4015de.66
jmp 0x401b1f
push ebp
call fcn.00402fdc
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017e0
push 2
call fcn.00402fdc
push 1
mov esi, eax
call fcn.00402fdc
pop ecx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401b1f
mov esi, dword [0x429d68]
push ebp
add esi, edx
call fcn.00402fdc
pop ecx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015de.66
test dword [esp + 0x3c], 0x100
je 0x401f17
push 2
call fcn.00402fdc
pop ecx
jmp 0x401f22
push dword [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x3c]
mov ebp, eax
mov eax, ecx
mov ebx, ecx
and eax, 4
shr ebx, 0x1e
mov dword [esp + 0x18], eax
mov esi, ecx
mov eax, ecx
and esi, 3
shr eax, 0x1f
and ebx, 1
mov dword [esp + 0x14], eax
test ecx, 0x10000
je 0x401f58
push 0x11
call fcn.00403018
jmp 0x401f5d
movzx eax, word [esp + 0x34]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x3c]
and eax, 0xfef0
push eax
mov eax, dword [esp + 0xa0]
imul eax, ebx
push eax
mov eax, dword [esp + 0xa0]
imul eax, dword [esp + 0x1c]
push eax
xor eax, eax
cmp dword [esp + 0x24], eax
push esi
push dword [esp + 0x2c]
cmovne eax, dword [0x428d14]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
push ebx
push esi
push 0x172
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x401fca
test esi, esi
jne 0x401fca
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x30], 0
jl case.0x4015de.66
push ebx
jmp 0x4016c9
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.00402fdc
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 [0x40c8c8], eax
mov eax, dword [esp + 0x24]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00402fdc
pop ecx
mov ecx, dword [esp + 0x40]
push dword [esp + 0x34]
mov dword [0x40c8d8], eax
mov al, cl
and al, 1
mov byte [0x40c8df], 1
mov byte [0x40c8dc], al
mov al, cl
and al, 2
and cl, 4
push 0x40c8e4
mov byte [0x40c8dd], al
mov byte [0x40c8de], cl
call fcn.00405e4d
push 0x40c8c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, dword [esp + 0x1c]
push eax
push ebx
jmp 0x4016ca
push ebp
call fcn.00402fdc
push 1
mov esi, eax
call fcn.00402fdc
pop ecx
pop ecx
push eax
push esi
cmp dword [esp + 0x44], ebp
jne 0x40208f
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015de.66
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015de.66
push ebp
call fcn.00403018
push 0x31
mov ebx, eax
call fcn.00403018
push 0x22
mov esi, eax
call fcn.00403018
push 0x15
mov edi, eax
call fcn.00403018
push 0x40a8c8
push 0xffffffffffffffec
call fcn.00405ccb
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], ecx
cmp word [ebx], bp
mov dword [esp + 0x64], esi
cmovne eax, ebx
mov dword [esp + 0x60], eax
xor eax, eax
cmp word [edi], bp
mov dword [esp + 0x6c], 0x435000
cmovne eax, edi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x54]
push eax
call fcn.004069e5
test eax, eax
je 0x40171b
test byte [esp + 0x58], 0x40
je case.0x4015de.66
push dword [esp + 0x8c]
call fcn.00406504
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015de.66
push ebp
call fcn.00403018
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00405ccb
push esi
call fcn.004066c0
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x40171b
cmp dword [esp + 0x38], ebp
je 0x40218d
push esi
call fcn.00406504
cmp dword [esp + 0x34], ebp
jl 0x402181
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406607
jmp 0x40218d
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
mov dword [esp + 0x10], ebx
push esi
jmp 0x402133
push 2
call fcn.00403018
push eax
call fcn.004065c1
mov ebx, eax
test ebx, ebx
je 0x4021b4
push dword [ebx + 0x14]
push esi
call fcn.00406607
push dword [ebx + 0x18]
jmp 0x4016c9
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x40171b
push 0xffffffffffffffee
call fcn.00403018
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], eax
push ecx
push eax
push 0xa
call fcn.004068d4
call eax
xor ecx, ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov word [edi], cx
inc ebx
mov word [esi], cx
test eax, eax
je 0x402e7d
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x48], eax
test eax, eax
je 0x402e7d
push 0xb
call fcn.004068d4
push 0xc
mov esi, eax
call fcn.004068d4
push dword [esp + 0x48]
mov dword [esp + 0x28], eax
push dword [esp + 0x18]
push ebp
push dword [esp + 0x58]
call esi
test eax, eax
je 0x40226c
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x20]
push eax
push 0x4082b0
push dword [esp + 0x54]
call dword [esp + 0x34]
test eax, eax
je 0x40226c
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push edi
call fcn.00406607
mov eax, dword [esp + 0x1c]
push dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406607
mov ebx, ebp
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402e7d
xor esi, esi
inc esi
mov ebx, esi
cmp dword [0x429d80], ebp
jl 0x402357
push 0xfffffffffffffff0
call fcn.00403018
mov edi, eax
push esi
mov dword [esp + 0x18], edi
call fcn.00403018
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x40], ebp
je 0x4022ba
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4022ce
mov edi, dword [esp + 0x14]
push 8
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40234e
push dword [esp + 0x1c]
push edi
call fcn.00406240
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40231f
mov ebx, ebp
cmp dword [esp + 0x38], ebx
je 0x4022ff
push dword [esp + 0x38]
call fcn.004030f7
call dword [esp + 0x14]
test eax, eax
je 0x40232a
mov ebx, esi
jmp 0x40232a
mov eax, dword [esp + 0x24]
push section..data
push 0x40a0c0
push section..ndata
push 0x400
push eax
call ecx
add esp, 0x14
jmp 0x40232a
push dword [esp + 0x1c]
push 0xfffffffffffffff7
call fcn.00405ccb
cmp dword [esp + 0x3c], ebp
jne 0x402e7d
push edi
call fcn.00403cf2
test eax, eax
je 0x402e7d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402e7d
push 0x40a8c8
push 0xfffffffffffffff6
jmp 0x40235e
push 0x40a8c8
push 0xffffffffffffffe7
call fcn.00405ccb
jmp 0x402e7d
push 0xfffffffffffffff0
call fcn.00403018
push 0xffffffffffffffdf
mov dword [esp + 0x58], eax
call fcn.00403018
mov ebx, eax
push 2
mov dword [esp + 0x18], ebx
call fcn.00403018
push 0xffffffffffffffcd
mov dword [esp + 0x54], eax
call fcn.00403018
push 0x45
mov dword [esp + 0x50], eax
call fcn.00403018
mov ecx, dword [esp + 0x40]
mov edi, ecx
mov dword [esp + 0x90], eax
mov eax, ecx
and eax, 0xfff
sar edi, 0xc
mov dword [esp + 0x24], eax
and edi, 7
mov eax, ecx
sar ecx, 0x10
and eax, 0x8000
mov dword [esp + 0x18], eax
movzx eax, cx
push ebx
mov dword [esp + 0x4c], eax
call fcn.00406d94
test eax, eax
jne 0x4023e1
push 0x21
call fcn.00403018
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
push 0x4089ec
inc ebx
push ebx
push ebp
push 0x408a0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4024d2
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
push 0x4089fc
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x4024b8
mov eax, dword [esp + 0x28]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
cmp dword [esp + 0x18], ebp
jne 0x402445
mov eax, dword [esp + 0x28]
push 0x435000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test edi, edi
je 0x402454
mov eax, dword [esp + 0x28]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x28]
push dword [esp + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esp + 0x4c]
cmp word [edx], bp
je 0x40247a
mov eax, dword [esp + 0x28]
push dword [esp + 0x24]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x28]
push dword [esp + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x28]
push dword [esp + 0x90]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
js 0x4024ae
mov eax, dword [esp + 0x1c]
push ebx
push dword [esp + 0x58]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x4024d2
push 0x40a8c8
push 0xfffffffffffffff4
jmp 0x401625
push 0x40a8c8
push 0xfffffffffffffff0
jmp 0x40235e
push ebp
call fcn.00403018
push 0x11
mov esi, eax
call fcn.00403018
push 0x23
mov edi, eax
call fcn.00403018
push esi
mov ebx, eax
call fcn.004065c1
test eax, eax
jne 0x40250f
push ebp
push 0xfffffffffffffff9
call fcn.00405ccb
jmp 0x40171b
mov eax, dword [esp + 0x24]
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 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
push ebx
push ebp
mov word [edi + eax*2 + 2], cx
mov ax, word [esp + 0x40]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x76], ebx
mov word [esp + 0x6c], ax
call fcn.00405ccb
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015de.66
jmp 0x402502
cmp ecx, 0xbadf00d
jne 0x401d75
inc dword [0x429df4]
jmp case.0x4015de.66
mov esi, ebp
mov edi, ebp
test ecx, ecx
je 0x402596
push ebp
call fcn.00403018
mov edx, dword [esp + 0x34]
mov ebp, eax
test edx, edx
je 0x4025a3
push 0x11
call fcn.00403018
mov esi, eax
cmp dword [esp + 0x40], edi
je 0x4025b2
push 0x22
call fcn.00403018
mov edi, eax
push 0xffffffffffffffcd
call fcn.00403018
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401713
push 0xa
pop ebp
push 1
mov dword [esp + 0x58], ebp
call fcn.00403018
push 0x12
mov edi, eax
call fcn.00403018
push 0xffffffffffffffdd
mov esi, eax
call fcn.00403018
mov ebx, dword [esp + 0x1c]
push eax
push 0x3ff
push ebx
lea eax, [esp + 0x60]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebx]
mov ecx, eax
cmp ax, bp
jne 0x40260f
xor eax, eax
mov word [ebx], ax
xor ebx, ebx
cmp cx, bp
jmp 0x401a2d
xor edi, edi
inc edi
cmp dword [esp + 0x40], ebp
jne 0x402649
push 2
call fcn.0040309b
mov esi, eax
test esi, esi
je 0x402663
push 0x33
call fcn.00403018
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402663
push 0x22
call fcn.00403018
mov ecx, dword [esp + 0x40]
sar ecx, 1
push ecx
push eax
push dword [esp + 0x5c]
call fcn.00403056
mov edi, eax
xor ebx, ebx
test edi, edi
setne bl
jmp 0x402e7d
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
push 2
mov dword [esp + 0x54], eax
call fcn.00403018
push 0x11
mov dword [esp + 0x18], eax
call fcn.00403018
lea ecx, [esp + 0x54]
xor esi, esi
push ecx
push 0x100022
push eax
push dword [esp + 0x9c]
inc esi
mov ebx, esi
call fcn.00402ffd
push eax
call fcn.0040627e
mov ecx, dword [esp + 0x54]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x90], ecx
test ecx, ecx
je 0x402e7d
mov eax, ebp
mov edi, 0x40b0c8
cmp dword [esp + 0x1c], esi
jne 0x4026ee
push 0x23
call fcn.00403018
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [eax*2 + 2]
mov esi, dword [esp + 0x1c]
cmp esi, 4
jne 0x402706
push 3
call fcn.00402fdc
pop ecx
push esi
mov dword [0x40b0c8], eax
pop eax
cmp esi, 3
jne 0x40271b
push 0x1800
push edi
push ebp
push dword [esp + 0x48]
call fcn.004032b4
mov esi, dword [esp + 0x90]
push eax
push edi
push dword [esp + 0x58]
push ebp
push dword [esp + 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
push esi
sbb eax, eax
and ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402e7d
push 0x20019
call fcn.0040309b
mov ebx, eax
push 0x33
mov dword [esp + 0x94], ebx
call fcn.00403018
xor ecx, ecx
mov word [edi], cx
test ebx, ebx
je 0x40171b
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0x800
push ecx
push edi
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
inc esi
test eax, eax
jne 0x4027c6
cmp dword [esp + 0x18], 4
je 0x4027b3
cmp dword [esp + 0x18], esi
je 0x4027a4
cmp dword [esp + 0x18], 2
jne 0x4027c6
mov ebx, dword [esp + 0x40]
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x4027cd
push dword [edi]
xor ebx, ebx
cmp dword [esp + 0x44], ebx
push edi
sete bl
call fcn.00406607
jmp 0x4027cd
xor eax, eax
mov ebx, esi
mov word [edi], ax
push dword [esp + 0x90]
jmp 0x40273b
push 0x20019
call fcn.0040309b
push 3
mov esi, eax
call fcn.00402fdc
mov ebx, dword [esp + 0x14]
pop ecx
xor ecx, ecx
mov dword [esp + 0x58], edx
mov word [edi], cx
test esi, esi
je 0x40171b
mov ecx, 0x3ff
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x40], ebp
je 0x40281d
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40283b
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x64]
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
mov dword [esp + 0x10], ebx
xor eax, eax
push esi
mov word [edi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015de.66
push edi
call fcn.00406c09
test eax, eax
je case.0x4015de.66
push eax
jmp 0x402133
push 0xffffffffffffffed
call fcn.00403018
push dword [esp + 0x38]
push dword [esp + 0x38]
push eax
call fcn.00406909
cmp eax, 0xffffffff
jne 0x401b1f
xor eax, eax
mov word [edi], ax
jmp 0x40171b
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edx, dword [esp + 0x38]
cmp ecx, 0x38
mov dword [esp + 0x54], edx
mov ebx, 0x40a8c8
sete al
xor esi, esi
inc esi
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4028c9
push esi
call fcn.00402fdc
xor ebx, ebx
mov word [0x40a8c8], ax
cmp dword [esp + 0x20], ebx
pop ecx
sete bl
inc ebx
jmp 0x402904
cmp ecx, 0x38
jne 0x4028f3
push 0x21
call fcn.00403018
push 0x400
push ebx
push 0x40b0c8
call fcn.00406459
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
jmp 0x402904
push 0x11
call fcn.00403018
push eax
call sub.KERNEL32.dll_lstrlenW
mov ebx, eax
add ebx, ebx
cmp word [edi], bp
je 0x402940
push edi
call fcn.00406c09
mov edi, eax
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x54]
jne 0x40292c
cmp dword [esp + 0x3c], ebp
je 0x40292c
push edi
push edi
call fcn.00406474
test eax, eax
js 0x402940
push ebx
push 0x40a8c8
push edi
call fcn.004069fd
test eax, eax
jne case.0x4015de.66
mov ebx, esi
jmp 0x402e7d
push 2
pop ecx
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ecx
call fcn.00402fdc
xor ebx, ebx
inc ebx
pop ecx
cmp eax, ebx
jl case.0x4015de.66
mov ecx, 0x3ff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x14], eax
cmp word [edi], bp
je 0x402acf
push edi
mov dword [esp + 0x4c], ebp
call fcn.00406c09
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x14], ebp
jle 0x402acf
mov dword [esp + 0x90], 0xd
mov edi, ebp
cmp dword [esp + 0x2c], 0x39
jne 0x402a60
push ebp
lea eax, [esp + 0x50]
push eax
push 2
pop eax
sub eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402acf
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x402acf
movzx eax, byte [esp + 0x10]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x3c], ebp
jne 0x402b14
push ebx
lea eax, [esp + 0x2c]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x402a8a
mov ecx, dword [esp + 0x24]
mov edx, ecx
neg edx
sub dword [esp + 0x4c], 1
mov eax, 0xfffd
mov dword [esp + 0x28], eax
je 0x402a92
push ebx
dec ecx
inc edx
push ebp
push edx
push dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x54]
lea eax, [esp + 0x1c]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
test eax, eax
je 0x402a13
jmp 0x402a8a
cmp dword [esp + 0x3c], ebp
jne 0x402a79
test edi, edi
jne 0x402a79
push ebp
push ecx
call fcn.00406474
test eax, eax
js 0x402acf
mov ecx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.00406936
test eax, eax
je 0x402acf
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebp
jne 0x402b14
push 0xd
pop edx
cmp word [esp + 0x48], dx
push 0xa
pop edx
je 0x402ae2
cmp word [esp + 0x48], dx
je 0x402ae2
mov word [esi + edi*2], ax
inc edi
movzx ecx, ax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], ecx
test ax, ax
je 0x402acf
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jl 0x4029a2
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor ebx, ebx
test eax, eax
mov word [esi + eax*2], cx
jmp 0x401a2d
cmp word [esp + 0x48], ax
je 0x402b03
cmp ax, word [esp + 0x90]
je 0x402af8
cmp ax, dx
jne 0x402b03
mov word [esi + edi*2], ax
inc edi
mov dword [esp + 0x1c], edi
jmp 0x402acf
push ebx
push ebp
neg ecx
push ecx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402acf
movzx eax, ax
push eax
push esi
call fcn.00406607
jmp 0x402e83
cmp word [edi], bp
je case.0x4015de.66
push 2
call fcn.00402fdc
pop ecx
push dword [esp + 0x3c]
push ebp
push eax
push edi
call fcn.00406c09
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x34], ebp
jl case.0x4015de.66
push eax
push esi
jmp 0x4016ca
push edi
call fcn.00406c09
test eax, eax
je case.0x4015de.66
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015de.66
push esi
call fcn.00406c09
test eax, eax
je 0x4018db
lea ecx, [esp + 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4018db
lea eax, [esp + 0xcc]
push eax
push edi
jmp 0x401d6b
push 2
call fcn.00403018
lea ecx, [esp + 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402bca
xor eax, eax
mov word [esi], ax
jmp 0x402882
push eax
push esi
call fcn.00406607
jmp 0x402b97
push 0xfffffffffffffff0
mov dword [esp + 0x1c], 0xfffffd66
call fcn.00403018
mov ebx, eax
push ebx
mov dword [esp + 0x58], ebx
call fcn.00406d94
test eax, eax
jne 0x402bf9
push 0xffffffffffffffed
call fcn.00403018
push ebx
call fcn.00406b81
push 2
push 0x40000000
push ebx
call fcn.00406909
mov edi, eax
mov dword [esp + 0x50], edi
cmp edi, 0xffffffff
je 0x402cd3
mov eax, dword [0x429d2c]
push eax
push 0x40
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x402ccc
push ebp
call fcn.0040311e
push dword [esp + 0x1c]
push esi
call fcn.00403108
push dword [esp + 0x38]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x90], edi
test edi, edi
je 0x402ca8
push dword [esp + 0x38]
push edi
push ebp
push dword [esp + 0x40]
call fcn.004032b4
cmp byte [edi], 0
je 0x402c9b
mov ebx, esi
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebx
push eax
call fcn.0040669e
add edi, esi
cmp byte [edi], 0
jne 0x402c7a
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
push esi
push edi
call fcn.004069fd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
push ebp
push edi
push 0xffffffffffffffff
call fcn.004032b4
mov dword [esp + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
cmp dword [esp + 0x18], ebp
jge 0x402ceb
push 0xffffffffffffffef
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
jmp 0x402cef
mov ebx, dword [esp + 0x10]
push esi
call fcn.004030f7
jmp 0x402e7d
push ebp
call fcn.00402fdc
mov ebx, eax
pop ecx
cmp ebx, dword [0x429d4c]
jae 0x40171b
mov ecx, dword [esp + 0x38]
imul edi, ebx, 0x818
add edi, dword [0x429d48]
test ecx, ecx
js 0x402d36
mov eax, dword [edi + ecx*4]
jne 0x402b51
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x401d6b
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x38], eax
je 0x402d51
push 1
call fcn.00402fdc
pop ecx
mov ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x402d69
push dword [esp + 0x40]
lea eax, [edi + 0x18]
push eax
call fcn.00405e4d
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], ebp
je case.0x4015de.66
push ebx
call fcn.0040122b
jmp case.0x4015de.66
push ebp
call fcn.00402fdc
mov edi, eax
pop ecx
cmp edi, 0x20
jae 0x40171b
cmp dword [esp + 0x3c], ebp
je 0x402dc0
cmp dword [esp + 0x38], ebp
je 0x402db5
push edi
call fcn.0040129a
push ebp
push ebp
call fcn.004012e7
jmp case.0x4015de.66
push ebp
call fcn.004011a0
jmp 0x402b51
mov eax, dword [0x429d34]
cmp dword [esp + 0x38], ebp
je 0x402ddb
mov ecx, dword [esp + 0x34]
mov dword [eax + edi*4 + 0x94], ecx
jmp case.0x4015de.66
push dword [eax + edi*4 + 0x94]
push esi
call fcn.00405e4d
jmp case.0x4015de.66
push 5
call fcn.004068d4
push 0x22
mov edi, eax
call fcn.00403018
xor esi, esi
inc esi
test edi, edi
je 0x402e45
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x402e45
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x44]
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
js 0x402e45
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406b12
push dword [esp + 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebp, esi
jmp 0x402e4e
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
movzx ebx, bp
xor ebx, esi
jmp 0x402e7d
and ecx, dword [0x4211d8]
push ebp
push ecx
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x30], ebp
je case.0x4015de.66
mov eax, dword [esp + 0x24]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [esp + 0x10]
add dword [0x429de8], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e0
ret 4