Function at 0x40155d
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, 0x2dc
mov eax, dword [0x4339f8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2ec]
xor ebp, ebp
push edi
push 7
pop ecx
lea edi, [esp + 0x28]
mov dword [esp + 0x24], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
mov eax, section..ndata
mov edx, dword [esp + 0x30]
mov edi, ecx
mov esi, edx
shl edi, 0xb
add edi, eax
shl esi, 0xb
add esi, eax
mov dword [esp + 0x8c], ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], edi
mov dword [0x40a104], eax
mov ebx, ebp
mov eax, dword [esp + 0x28]
add eax, 0xfffffffe
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
cmp eax, 0x43
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], esi
ja case.0x4015db.66
mov ebx, dword [esp + 0x14]
jmp dword [ebx*4 + 0x402e81]
mov eax, ecx
jmp 0x402e71
push ebp
push ecx
call fcn.00405c2d
mov eax, 0x7fffffff
jmp 0x402e71
inc dword [0x4339d8]
test eax, eax
je 0x4015f0
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4015f0
push ecx
call fcn.004030c4
dec eax
push ebp
push eax
call fcn.004013ac
jmp 0x402e71
push ebp
push ecx
call fcn.00405c2d
jmp case.0x4015db.66
push ebp
call fcn.00402fc9
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015db.66
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015db.66
cmp dword [esp + 0x34], ebp
jne 0x401681
mov eax, dword [ecx*4 + 0x434ac0]
push 1
mov dword [ecx*4 + 0x434a80], eax
call fcn.00402fc9
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [eax*4 + 0x434ac0], ecx
jmp case.0x4015db.66
mov eax, dword [ecx*4 + 0x434a80]
mov dword [ecx*4 + 0x434ac0], eax
jmp case.0x4015db.66
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push 4
mov edx, dword [ecx*4 + 0x434ac0]
and eax, edx
mov dword [ecx*4 + 0x434ac0], eax
xor eax, eax
test edx, edx
pop ecx
cmove eax, ecx
mov eax, dword [esp + eax + 0x2c]
jmp 0x402e71
push dword [edx*4 + 0x434ac0]
push edi
call fcn.00406553
jmp case.0x4015db.66
mov eax, dword [0x4339d0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4016e8
push edx
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x4339d4]
test eax, eax
je case.0x4015db.66
push ecx
push eax
call esi
jmp case.0x4015db.66
push 0xfffffffffffffff0
call fcn.00403005
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015db.66
xor ebx, ebx
inc ebx
jmp 0x402e69
push 0xfffffffffffffff0
call fcn.00403005
mov edi, eax
push edi
call fcn.00406afd
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x401793
push 0x5c
push esi
call fcn.0040652a
mov esi, eax
xor eax, eax
movzx ebp, word [esi]
mov word [esi], ax
test bp, bp
jne 0x401767
cmp dword [esp + 0x34], eax
je 0x401767
call fcn.00406430
test eax, eax
je 0x401767
push edi
call fcn.00405d31
jmp 0x40176d
push edi
call fcn.00405d11
test eax, eax
je 0x401784
cmp eax, 0xb7
jne 0x401783
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401784
inc ebx
mov word [esi], bp
add esi, 2
test bp, bp
jne 0x401739
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x30], 0
push 0x40a908
je 0x4017ca
push 0xffffffffffffffe6
call fcn.00405c2d
push edi
push 0x440000
call fcn.00406a52
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4015db.66
inc ebx
mov dword [esp + 0x10], ebx
jmp case.0x4015db.66
push 0xfffffffffffffff5
jmp 0x401622
push ebp
call fcn.00403005
push eax
call fcn.00406503
jmp 0x401ec8
push 0xffffffffffffffd0
call fcn.00403005
push 0xffffffffffffffdf
mov esi, eax
call fcn.00403005
push 0x13
mov edi, eax
call fcn.00403005
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401813
push 0x40a908
push 0xffffffffffffffe3
jmp 0x401622
cmp dword [esp + 0x34], ebp
je 0x401718
push esi
call fcn.00406503
test eax, eax
je 0x401718
push edi
push esi
call fcn.00406171
push 0x40a908
push 0xffffffffffffffe4
jmp 0x401622
push ebp
call fcn.00403005
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 0x401866
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x40188e
mov eax, dword [esp + 0x1c]
cmp eax, edi
jbe 0x40188a
cmp word [eax], bp
je 0x40188a
push edi
call fcn.00406503
test eax, eax
je 0x40185c
add eax, 0x2c
push eax
push dword [esp + 0x20]
call fcn.00406a52
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x34], ebp
jne 0x402e69
push 0x400
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x402e69
push 0xffffffffffffffff
call fcn.00403005
lea ecx, [esp + 0x50]
push ecx
push edi
push 0x400
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4015db.66
xor ebx, ebx
inc ebx
xor eax, eax
mov word [edi], ax
jmp 0x402e69
push 0xffffffffffffffef
call fcn.00403005
push eax
push edi
call fcn.0040698c
jmp 0x401710
push 0x31
call fcn.00403005
mov ebx, dword [esp + 0x2c]
mov esi, eax
and ebx, 7
mov dword [esp + 0x18], esi
push esi
mov dword [esp + 0x20], ebx
call fcn.00406d3b
mov edi, 0x40a108
push esi
test eax, eax
je 0x40191d
push edi
call fcn.00406a52
jmp 0x401934
push 0x440000
push edi
call fcn.00406a52
push eax
call fcn.0040648a
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.00406c75
xor esi, esi
inc esi
cmp ebx, 3
jl 0x401973
push edi
call fcn.00406503
mov ecx, ebp
test eax, eax
je 0x40195f
lea ecx, [esp + 0x38]
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 0x40197d
push edi
call fcn.00406ad5
xor eax, eax
cmp ebx, esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406851
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x401a27
test ebx, ebx
jne 0x401a0c
push section..ndata
push 0x40b108
call fcn.00406a52
push edi
push section..ndata
call fcn.00406a52
push dword [esp + 0x40]
push 0x40a908
call fcn.00405dad
push 0x40b108
push section..ndata
call fcn.00406a52
mov eax, dword [esp + 0x2c]
sar eax, 3
push eax
push 0x40a908
call fcn.004069e0
sub eax, 4
je 0x40193d
sub eax, 1
je 0x401a01
push edi
push 0xfffffffffffffffa
jmp 0x4015eb
inc dword [0x434ac8]
jmp 0x402e6f
mov esi, dword [esp + 0x18]
push esi
push 0xffffffffffffffe2
call fcn.00405c2d
xor ebx, ebx
cmp dword [esp + 0x1c], 2
sete bl
jmp 0x402e69
mov esi, dword [esp + 0x18]
push esi
push 0xffffffffffffffea
call fcn.00405c2d
mov ebx, dword [esp + 0x14]
inc dword [0x434af4]
push ebp
push ebp
push ebx
push dword [esp + 0x40]
call fcn.0040310f
dec dword [0x434af4]
cmp dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x14], eax
jne 0x401a61
cmp dword [esp + 0x3c], 0xffffffff
je 0x401a6f
lea eax, [esp + 0x38]
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.0x4015db.66
cmp eax, 0xfffffffe
jne 0x401a98
push 0xffffffffffffffe9
push edi
call fcn.00405dad
push esi
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401aa0
push 0xffffffffffffffee
push edi
call fcn.00405dad
push 0x200010
push edi
call fcn.004069e0
jmp 0x4015f0
push ebp
call fcn.00403005
push dword [esp + 0x30]
push eax
call fcn.0040664d
jmp case.0x4015db.66
push 0x31
call fcn.00403005
push dword [esp + 0x2c]
push eax
call fcn.004069e0
test eax, eax
je 0x401718
cmp eax, dword [esp + 0x34]
je 0x401c3e
cmp eax, dword [esp + 0x3c]
jne case.0x4015db.66
mov eax, dword [esp + 0x40]
jmp 0x402e71
push 0xfffffffffffffff0
jmp 0x401ab1
push 1
call fcn.00403005
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x4016c6
push 2
call fcn.00402fc9
push 3
mov ebx, eax
mov esi, edx
call fcn.00402fc9
pop ecx
pop ecx
push 1
mov ebp, eax
call fcn.00403005
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 ebx, ecx
test ebx, ebx
je case.0x4015db.66
test ebp, ebp
lea eax, [ecx + ebp]
cmovns eax, ebp
test eax, eax
js case.0x4015db.66
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
push eax
push edi
call fcn.00406a52
test ebx, ebx
jns 0x401b7c
push edi
call sub.KERNEL32.dll_lstrlenW
add ebx, eax
xor eax, eax
test ebx, ebx
cmovns eax, ebx
mov ebx, dword [esp + 0x10]
cmp eax, 0x400
jge 0x402e69
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x402e69
push 0x20
call fcn.00403005
push 0x31
mov esi, eax
call fcn.00403005
push eax
push esi
cmp dword [esp + 0x44], ebp
jne 0x401bbd
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401bc3
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401c3e
mov eax, dword [esp + 0x34]
jmp 0x402e71
xor esi, esi
inc esi
push esi
call fcn.00403005
push 0x400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401bfe
cmp dword [esp + 0x34], ebp
je 0x401c07
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401c07
xor eax, eax
mov ebx, esi
mov word [edi], ax
jmp 0x401c0b
mov ebx, dword [esp + 0x10]
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x402e69
mov esi, dword [esp + 0x40]
push ebp
call fcn.00402fc9
push 1
mov edi, eax
call fcn.00402fc9
pop ecx
pop ecx
test esi, esi
jne 0x401c3a
cmp edi, eax
jl 0x401c3e
jle 0x401bc7
jmp 0x401c4d
cmp edi, eax
jae 0x401c47
mov eax, dword [esp + 0x38]
jmp 0x402e71
jbe 0x401bc7
mov eax, dword [esp + 0x3c]
jmp 0x402e71
xor ebx, ebx
inc ebx
push ebx
call fcn.00402fc9
push 2
mov dword [esp + 0x24], eax
mov esi, eax
call fcn.00402fc9
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x38]
cmp eax, 0xd
ja case.default.0x401c79
jmp dword [eax*4 + 0x402f91]
lea eax, [esi + ecx]
jmp 0x401cfc
mov eax, esi
sub eax, ecx
jmp 0x401cfc
mov eax, esi
imul eax, ecx
jmp 0x401cfc
test ecx, ecx
je 0x401c9d
mov eax, esi
cdq
idiv ecx
jmp 0x401c9f
mov eax, ebp
xor ebx, ebx
test ecx, ecx
sete bl
jmp 0x401d00
mov eax, esi
or eax, ecx
jmp 0x401cfc
mov eax, esi
and eax, ecx
jmp 0x401cfc
mov eax, esi
xor eax, ecx
jmp 0x401cfc
xor eax, eax
test esi, esi
sete al
jmp 0x401cfc
test esi, esi
je 0x401cd3
mov eax, ebx
jmp 0x401cfc
mov eax, ebp
jmp 0x401cfc
test esi, esi
je 0x401ccb
test ecx, ecx
je 0x401ccb
jmp 0x401cc7
test ecx, ecx
je 0x401c9d
mov eax, esi
cdq
idiv ecx
mov eax, edx
jmp 0x401c9f
mov eax, esi
shl eax, cl
jmp 0x401cfc
mov eax, esi
sar eax, cl
jmp 0x401cfc
mov eax, esi
shr eax, cl
jmp 0x401cfc
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push eax
push edi
call fcn.00406553
jmp 0x402e69
push 1
call fcn.00403005
push 2
mov esi, eax
call fcn.00402fc9
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x4015db.66
mov eax, dword [esp + 0x34]
mov esi, dword [0x40a100]
test eax, eax
je 0x401d8f
dec eax
test esi, esi
je 0x401d7c
mov esi, dword [esi]
test eax, eax
jne 0x401d3b
test esi, esi
je 0x401d7c
add esi, 4
mov edi, 0x40a108
push esi
push edi
call fcn.00406a52
mov eax, dword [0x40a100]
add eax, 4
push eax
push esi
call fcn.00406a52
mov eax, dword [0x40a100]
push edi
add eax, 4
push eax
call fcn.00406a52
jmp case.0x4015db.66
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.00405dad
push eax
jmp 0x401aa6
test edx, edx
je 0x401db8
test esi, esi
je 0x401718
lea eax, [esi + 4]
push eax
push edi
call fcn.00406a52
mov eax, dword [esi]
push esi
mov dword [0x40a100], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015db.66
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x2c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405dad
mov eax, dword [0x40a100]
mov dword [esi], eax
mov dword [0x40a100], esi
jmp case.0x4015db.66
push 3
call fcn.00402fc9
mov esi, eax
push 4
mov dword [esp + 0x24], esi
call fcn.00402fc9
mov ebx, eax
mov eax, dword [esp + 0x48]
pop ecx
pop ecx
test al, 1
je 0x401e17
push 0x33
call fcn.00403005
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
test al, 2
je 0x401e24
push 0x44
call fcn.00403005
mov ebx, eax
cmp dword [esp + 0x28], 0x21
push 1
jne 0x401e7c
call fcn.00402fc9
push 2
mov dword [esp + 0x24], eax
call fcn.00402fc9
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
sar ecx, 2
test ecx, ecx
je 0x401e6d
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 0x401eab
push ebx
push esi
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401ea7
call fcn.00403005
push 0x12
mov esi, eax
call fcn.00403005
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 + 0x2c], ebp
jl case.0x4015db.66
jmp 0x401b0c
push ebp
call fcn.00402fc9
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401bc7
mov eax, dword [esp + 0x30]
jmp 0x402e71
push 2
call fcn.00402fc9
push 1
mov esi, eax
call fcn.00402fc9
pop ecx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401b0c
mov esi, dword [0x434a48]
push ebp
add esi, edx
call fcn.00402fc9
pop ecx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015db.66
test dword [esp + 0x38], 0x100
je 0x401f2a
push 2
call fcn.00402fc9
pop ecx
jmp 0x401f35
push dword [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x38]
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 0x401f6b
push 0x11
call fcn.00403005
jmp 0x401f70
movzx eax, word [esp + 0x30]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x8c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
and eax, 0xfef0
push eax
mov eax, dword [esp + 0x9c]
imul eax, ebx
push eax
mov eax, dword [esp + 0x9c]
imul eax, dword [esp + 0x1c]
push eax
xor eax, eax
cmp dword [esp + 0x24], eax
push esi
push dword [esp + 0x2c]
cmovne eax, dword [0x4339f4]
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 0x401fdd
test esi, esi
jne 0x401fdd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x2c], 0
jl case.0x4015db.66
push ebx
jmp 0x4016c6
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.00402fc9
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 [0x40c908], eax
mov eax, dword [esp + 0x24]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00402fc9
pop ecx
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x30]
mov dword [0x40c918], eax
mov al, cl
and al, 1
mov byte [0x40c91f], 1
mov byte [0x40c91c], al
mov al, cl
and al, 2
and cl, 4
push 0x40c924
mov byte [0x40c91d], al
mov byte [0x40c91e], cl
call fcn.00405dad
push 0x40c908
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebp, dword [esp + 0x1c]
push eax
push ebp
jmp 0x4016c7
push ebp
call fcn.00402fc9
push 1
mov esi, eax
call fcn.00402fc9
pop ecx
pop ecx
push eax
push esi
cmp dword [esp + 0x40], ebp
jne 0x4020a2
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015db.66
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015db.66
push ebp
call fcn.00403005
push 0x31
mov ebx, eax
call fcn.00403005
push 0x22
mov esi, eax
call fcn.00403005
push 0x15
mov edi, eax
call fcn.00403005
push 0x40a908
push 0xffffffffffffffec
call fcn.00405c2d
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
cmp word [ebx], bp
mov dword [esp + 0x60], esi
cmovne eax, ebx
mov dword [esp + 0x5c], eax
xor eax, eax
cmp word [edi], bp
mov dword [esp + 0x68], 0x440000
cmovne eax, edi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x50]
push eax
call fcn.00406929
test eax, eax
je 0x401718
test byte [esp + 0x54], 0x40
je case.0x4015db.66
push dword [esp + 0x88]
call fcn.00406448
push dword [esp + 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015db.66
push ebp
call fcn.00403005
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00405c2d
push esi
call fcn.0040660a
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x401718
cmp dword [esp + 0x34], ebp
je 0x40219f
push esi
call fcn.00406448
cmp dword [esp + 0x30], ebp
jl 0x402193
push eax
push dword [esp + 0x48]
call fcn.00406553
jmp 0x40219f
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
mov dword [esp + 0x10], ebx
push esi
jmp 0x402146
push 2
call fcn.00403005
push eax
call fcn.00406503
mov ebx, eax
test ebx, ebx
je 0x4021c6
push dword [ebx + 0x14]
push esi
call fcn.00406553
push dword [ebx + 0x18]
jmp 0x4016c6
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x401718
push 0xffffffffffffffee
call fcn.00403005
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], eax
push ecx
push eax
push 0xa
call fcn.0040681c
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 0x402e69
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x402e69
push 0xb
call fcn.0040681c
push 0xc
mov esi, eax
call fcn.0040681c
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
push dword [esp + 0x18]
push ebp
push dword [esp + 0x58]
call esi
test eax, eax
je 0x40227d
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x4082b0
push dword [esp + 0x24]
call dword [esp + 0x34]
test eax, eax
je 0x40227d
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push edi
call fcn.00406553
mov eax, dword [esp + 0x1c]
push dword [eax + 0xc]
push dword [esp + 0x48]
call fcn.00406553
mov ebx, ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402e69
xor esi, esi
inc esi
mov ebx, esi
cmp dword [0x434af8], ebp
jl 0x40236d
push 0xfffffffffffffff0
call fcn.00403005
mov edi, eax
push esi
mov dword [esp + 0x18], edi
call fcn.00403005
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x3c], ebp
je 0x4022cb
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4022df
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 0x402364
push dword [esp + 0x1c]
push edi
call fcn.0040619d
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x402335
mov ebx, ebp
cmp dword [esp + 0x34], ebx
je 0x402315
push 0x40a908
push dword [esp + 0x38]
call fcn.00405c2d
call dword [esp + 0x14]
test eax, eax
je 0x402340
mov ebx, esi
jmp 0x402340
mov eax, dword [esp + 0x24]
push section..data
push 0x40a100
push section..ndata
push 0x400
push eax
call ecx
add esp, 0x14
jmp 0x402340
push dword [esp + 0x1c]
push 0xfffffffffffffff7
call fcn.00405c2d
cmp dword [esp + 0x38], ebp
jne 0x402e69
push edi
call fcn.00403bf5
test eax, eax
je 0x402e69
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402e69
push 0x40a908
push 0xfffffffffffffff6
jmp 0x402374
push 0x40a908
push 0xffffffffffffffe7
call fcn.00405c2d
jmp 0x402e69
push 0xfffffffffffffff0
call fcn.00403005
push 0xffffffffffffffdf
mov dword [esp + 0x54], eax
call fcn.00403005
mov ebx, eax
push 2
mov dword [esp + 0x18], ebx
call fcn.00403005
push 0xffffffffffffffcd
mov dword [esp + 0x4c], eax
call fcn.00403005
push 0x45
mov dword [esp + 0x50], eax
call fcn.00403005
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
and ecx, 0xfff
mov edi, eax
mov dword [esp + 0x24], ecx
mov ecx, eax
and ecx, 0x8000
sar eax, 0x10
sar edi, 0xc
push ebx
mov dword [esp + 0x1c], ecx
and edi, 7
mov dword [esp + 0x48], eax
call fcn.00406d3b
test eax, eax
jne 0x4023f6
push 0x21
call fcn.00403005
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x408ad8
inc esi
push esi
push ebp
push 0x408af8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4024d9
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x408ae8
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
js 0x4024cf
mov eax, dword [esp + 0x10]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov ebx, eax
cmp dword [esp + 0x18], ebp
jne 0x40245c
mov eax, dword [esp + 0x10]
push 0x440000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test edi, edi
je 0x40246b
mov eax, dword [esp + 0x10]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x10]
push dword [esp + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esp + 0x4c]
cmp word [edx], bp
je 0x402491
mov eax, dword [esp + 0x10]
push dword [esp + 0x24]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x10]
push dword [esp + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x10]
push dword [esp + 0x8c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test ebx, ebx
js 0x4024c5
mov eax, dword [esp + 0x1c]
push esi
push dword [esp + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
sar eax, 0x1f
and eax, 0xfffffffc
sub eax, 0xc
push 0x40a908
push eax
call fcn.00405c2d
shr ebx, 0x1f
jmp 0x402e69
push ebp
call fcn.00403005
push 0x11
mov esi, eax
call fcn.00403005
push 0x23
mov edi, eax
call fcn.00403005
push esi
mov ebx, eax
call fcn.00406503
test eax, eax
jne 0x402528
push ebp
push 0xfffffffffffffff9
call fcn.00405c2d
jmp 0x401718
mov eax, dword [esp + 0x24]
push esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 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 + 0x3c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x72], ebx
mov word [esp + 0x68], ax
call fcn.00405c2d
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015db.66
jmp 0x40251b
cmp ecx, 0xbadf00d
jne 0x401d7c
inc dword [0x434ad4]
jmp case.0x4015db.66
mov esi, ebp
mov edi, ebp
test ecx, ecx
je 0x4025af
push ebp
call fcn.00403005
mov edx, dword [esp + 0x30]
mov ebp, eax
test edx, edx
je 0x4025bc
push 0x11
call fcn.00403005
mov esi, eax
cmp dword [esp + 0x3c], edi
je 0x4025cb
push 0x22
call fcn.00403005
mov edi, eax
push 0xffffffffffffffcd
call fcn.00403005
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401710
xor ebx, ebx
mov dword [esp + 0x50], 0xa
inc ebx
push ebx
call fcn.00403005
push 0x12
mov edi, eax
call fcn.00403005
push 0xffffffffffffffdd
mov esi, eax
call fcn.00403005
mov ebp, dword [esp + 0x1c]
push eax
push 0x3ff
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.0x4015db.66
xor eax, eax
mov word [ebp], ax
jmp 0x402e69
xor edi, edi
inc edi
cmp dword [esp + 0x3c], ebp
jne 0x402664
push 2
call fcn.00403088
mov esi, eax
test esi, esi
je 0x40267e
push 0x33
call fcn.00403005
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40267e
push 0x22
call fcn.00403005
mov ecx, dword [esp + 0x3c]
sar ecx, 1
push ecx
push eax
push dword [esp + 0x58]
call fcn.00403043
mov edi, eax
xor ebx, ebx
test edi, edi
setne bl
jmp 0x402e69
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
push 2
mov dword [esp + 0x18], eax
call fcn.00403005
push 0x11
mov dword [esp + 0x1c], eax
call fcn.00403005
lea ecx, [esp + 0x50]
xor esi, esi
push ecx
push 0x100022
push eax
push dword [esp + 0x98]
inc esi
mov ebx, esi
call fcn.00402fea
push eax
call fcn.004061d9
mov ecx, dword [esp + 0x50]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x8c], ecx
test ecx, ecx
je 0x402e69
mov eax, ebp
mov edi, 0x40b108
cmp dword [esp + 0x1c], esi
jne 0x402709
push 0x23
call fcn.00403005
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [eax*2 + 2]
mov esi, dword [esp + 0x1c]
cmp esi, 4
jne 0x402721
push 3
call fcn.00402fc9
pop ecx
push esi
mov dword [0x40b108], eax
pop eax
cmp esi, 3
jne 0x402736
push 0x1800
push edi
push ebp
push dword [esp + 0x44]
call fcn.0040310f
mov esi, dword [esp + 0x8c]
push eax
push edi
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402e69
push 0x20019
call fcn.00403088
push 0x33
mov esi, eax
call fcn.00403005
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401718
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x800
push ecx
push edi
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4027dd
cmp dword [esp + 0x18], 4
je 0x4027c7
cmp dword [esp + 0x18], ecx
je 0x4027b8
cmp dword [esp + 0x18], 2
jne 0x4027dd
mov ebx, dword [esp + 0x3c]
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x402755
push dword [edi]
xor ebx, ebx
cmp dword [esp + 0x40], ebx
push edi
sete bl
call fcn.00406553
jmp 0x402755
xor eax, eax
mov ebx, ecx
mov word [edi], ax
jmp 0x402755
push 0x20019
call fcn.00403088
push 3
mov esi, eax
call fcn.00402fc9
mov ebx, dword [esp + 0x14]
pop ecx
xor ecx, ecx
mov dword [esp + 0x54], edx
mov word [edi], cx
test esi, esi
je 0x401718
mov ecx, 0x3ff
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x3c], ebp
je 0x40282d
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40284b
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
mov dword [esp + 0x10], ebx
xor eax, eax
push esi
mov word [edi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015db.66
push edi
call fcn.00406b5d
test eax, eax
je case.0x4015db.66
push eax
jmp 0x402146
push 0xffffffffffffffed
call fcn.00403005
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
call fcn.00406851
cmp eax, 0xffffffff
jne 0x401b0c
xor eax, eax
mov word [edi], ax
jmp 0x401718
mov ecx, dword [esp + 0x28]
xor eax, eax
mov edx, dword [esp + 0x34]
cmp ecx, 0x38
mov dword [esp + 0x50], edx
mov esi, 0x40a908
sete al
xor ebx, ebx
inc ebx
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4028d6
push ebx
call fcn.00402fc9
mov esi, dword [esp + 0x20]
xor esi, ebx
mov word [0x40a908], ax
pop ecx
inc esi
jmp 0x402911
cmp ecx, 0x38
jne 0x402900
push 0x21
call fcn.00403005
push 0x400
push esi
push 0x40b108
call fcn.0040639d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x402911
push 0x11
call fcn.00403005
push eax
call sub.KERNEL32.dll_lstrlenW
mov esi, eax
add esi, esi
cmp word [edi], bp
je 0x402e69
push edi
call fcn.00406b5d
mov edi, eax
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x50]
jne 0x402941
cmp dword [esp + 0x38], ebp
je 0x402941
push edi
push edi
call fcn.004063b8
test eax, eax
js 0x402e69
push esi
push 0x40a908
push edi
call fcn.00406941
test eax, eax
jne case.0x4015db.66
jmp 0x402e69
push 2
pop ecx
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ecx
call fcn.00402fc9
xor ebx, ebx
inc ebx
pop ecx
cmp eax, ebx
jl case.0x4015db.66
mov ecx, 0x3ff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x14], eax
cmp word [edi], bp
je 0x402ae2
push edi
mov dword [esp + 0x48], ebp
call fcn.00406b5d
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x14], ebp
jle 0x402ae2
mov dword [esp + 0x8c], 0xd
mov edi, ebp
cmp dword [esp + 0x28], 0x39
jne 0x402a73
push ebp
lea eax, [esp + 0x50]
push eax
push 2
pop eax
sub eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402ae2
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x402ae2
movzx eax, byte [esp + 0x10]
mov dword [esp + 0x48], eax
cmp dword [esp + 0x38], ebp
jne 0x402b27
push ebx
lea eax, [esp + 0x4c]
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 0x402a9d
mov ecx, dword [esp + 0x24]
mov edx, ecx
neg edx
sub dword [esp + 0x4c], 1
mov eax, 0xfffd
mov dword [esp + 0x48], eax
je 0x402aa5
push ebx
dec ecx
inc edx
push ebp
push edx
push dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x60], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x4c]
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 + 0x50]
test eax, eax
je 0x402a26
jmp 0x402a9d
cmp dword [esp + 0x38], ebp
jne 0x402a8c
test edi, edi
jne 0x402a8c
push ebp
push ecx
call fcn.004063b8
test eax, eax
js 0x402ae2
mov ecx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.0040687e
test eax, eax
je 0x402ae2
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x38], ebp
jne 0x402b27
push 0xd
pop edx
cmp word [esp + 0x44], dx
push 0xa
pop edx
je 0x402af5
cmp word [esp + 0x44], dx
je 0x402af5
mov word [esi + edi*2], ax
inc edi
movzx eax, ax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], eax
test ax, ax
je 0x402ae2
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jl 0x4029b5
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor ebx, ebx
test eax, eax
mov word [esi + eax*2], cx
jmp 0x401a1f
cmp word [esp + 0x44], ax
je 0x402b16
cmp ax, word [esp + 0x8c]
je 0x402b0b
cmp ax, dx
jne 0x402b16
mov word [esi + edi*2], ax
inc edi
mov dword [esp + 0x1c], edi
jmp 0x402ae2
push ebx
push ebp
neg ecx
push ecx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402ae2
movzx eax, ax
push eax
push esi
call fcn.00406553
jmp 0x402e6f
cmp word [edi], bp
je case.0x4015db.66
push 2
call fcn.00402fc9
pop ecx
push dword [esp + 0x38]
push ebp
push eax
push edi
call fcn.00406b5d
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x30], ebp
jl case.0x4015db.66
push eax
push esi
jmp 0x4016c7
push edi
call fcn.00406b5d
test eax, eax
je case.0x4015db.66
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015db.66
push esi
call fcn.00406b5d
test eax, eax
je 0x4018cd
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4018cd
lea eax, [esp + 0xc8]
push eax
push edi
jmp 0x401d72
push 2
call fcn.00403005
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402bdd
xor eax, eax
mov word [esi], ax
jmp 0x402892
push eax
push esi
call fcn.00406553
jmp 0x402baa
push 0xfffffffffffffff0
mov ebx, 0xfffffd66
call fcn.00403005
mov esi, eax
push esi
mov dword [esp + 0x90], esi
call fcn.00406d3b
test eax, eax
jne 0x402c0c
push 0xffffffffffffffed
call fcn.00403005
push esi
call fcn.00406ad5
push 2
push 0x40000000
push esi
call fcn.00406851
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x402ce1
mov eax, dword [0x434a08]
push eax
push 0x40
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x50], eax
test eax, eax
je 0x402cd6
push ebp
call fcn.004030f8
push dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
push ebx
call fcn.004030e2
push dword [esp + 0x34]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x50], edi
test edi, edi
je 0x402cb4
push dword [esp + 0x34]
push edi
push ebp
push dword [esp + 0x3c]
call fcn.0040310f
cmp byte [edi], 0
je 0x402caa
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebx
push eax
call fcn.004065e8
add edi, esi
cmp byte [edi], 0
jne 0x402c8a
mov esi, dword [esp + 0x8c]
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push ebx
push edi
call fcn.00406941
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
push ebp
push edi
push 0xffffffffffffffff
call fcn.0040310f
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jns 0x402ce8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
sar eax, 0x1f
and eax, 0xfffffffc
sub eax, 0xd
jmp 0x4024e4
push ebp
call fcn.00402fc9
mov ebx, eax
pop ecx
cmp ebx, dword [0x434a2c]
jae 0x401718
mov ecx, dword [esp + 0x34]
imul edi, ebx, 0x818
add edi, dword [0x434a28]
test ecx, ecx
js 0x402d34
mov eax, dword [edi + ecx*4]
jne 0x402b64
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x401d72
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x34], eax
je 0x402d4f
push 1
call fcn.00402fc9
pop ecx
mov ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x402d67
push dword [esp + 0x3c]
lea eax, [edi + 0x18]
push eax
call fcn.00405dad
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x38], ebp
je case.0x4015db.66
push ebx
call fcn.00401221
jmp case.0x4015db.66
push ebp
call fcn.00402fc9
mov edi, eax
pop ecx
cmp edi, 0x20
jae 0x401718
cmp dword [esp + 0x38], ebp
je 0x402dbe
cmp dword [esp + 0x34], ebp
je 0x402db3
push edi
call fcn.00401290
push ebp
push ebp
call fcn.004012dd
jmp case.0x4015db.66
push ebp
call fcn.004011a0
jmp 0x402b64
mov eax, dword [0x434a10]
cmp dword [esp + 0x34], ebp
je 0x402dd9
mov ecx, dword [esp + 0x30]
mov dword [eax + edi*4 + 0x94], ecx
jmp case.0x4015db.66
push dword [eax + edi*4 + 0x94]
push esi
call fcn.00405dad
jmp case.0x4015db.66
push 5
call fcn.0040681c
push 0x22
mov edi, eax
call fcn.00403005
test edi, edi
je 0x402e37
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x402e37
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x40]
lea eax, [esp + 0x5c]
push eax
call edi
test eax, eax
js 0x402e37
push dword [esp + 0x14]
push esi
call fcn.00406a52
push dword [esp + 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x4015db.66
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x402e69
and ecx, dword [0x42ad40]
push ebp
push ecx
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x2c], ebp
je case.0x4015db.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 [0x434ac8], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret 4