Function at 0x401434
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
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [0x476f48]
push 7
pop ecx
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov esi, section..ndata
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
xor ebx, ebx
shl ecx, 0xe
add ecx, esi
mov edi, eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x30]
shl edi, 0xe
mov dword [0x41e67c], ecx
lea ecx, [edx - 2]
add edi, esi
cmp ecx, 0x43
mov dword [ebp - 4], ebx
ja case.0x40148a.66
jmp dword [ecx*4 + 0x402c61]
push ebx
push eax
call fcn.0040574c
jmp 0x4023c2
inc dword [0x46ef0c]
cmp dword [ebp - 8], ebx
je 0x4023c2
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4023c2
push eax
call fcn.0040136d
dec eax
push ebx
push eax
call fcn.00401389
jmp case.0x40148a.2
push ebx
push eax
call fcn.0040574c
jmp case.0x40148a.66
push ebx
call fcn.00402da9
cmp eax, 1
pop ecx
mov dword [ebp - 0x10], edx
jg 0x4014e9
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x40148a.66
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x40148a.66
cmp dword [ebp - 0x28], ebx
jg 0x401541
jge 0x401518
mov eax, dword [eax*4 + 0x476fc0]
mov dword [0x41e684], eax
jmp 0x401527
shl eax, 2
mov ecx, dword [eax + 0x476fc0]
mov dword [eax + 0x477020], ecx
push 1
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x30]
mov dword [ecx*4 + 0x476fc0], eax
jmp case.0x40148a.66
shl eax, 2
cmp dword [ebp - 0x24], ebx
lea ecx, [eax + 0x476fc0]
mov eax, dword [eax + 0x477020]
mov dword [ecx], eax
jge case.0x40148a.66
mov eax, dword [0x41e684]
mov dword [ecx], eax
jmp case.0x40148a.66
mov eax, dword [ebp - 0x28]
lea esi, [eax*4 + 0x476fc0]
xor eax, eax
mov ecx, dword [esi]
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x24]
mov eax, dword [ebp + eax*4 - 0x30]
mov dword [esi], ecx
jmp case.0x40148a.2
mov eax, dword [ebp - 0x2c]
push dword [eax*4 + 0x476fc0]
push edi
jmp 0x402bc9
mov ecx, dword [0x46ef10]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ecx, ebx
je 0x4015b1
push dword [ebp - 0x2c]
push ecx
call esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [0x46ef24]
cmp ecx, ebx
je case.0x40148a.66
push eax
push ecx
call esi
jmp case.0x40148a.66
push 0xfffffffffffffff0
call fcn.00402dcb
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x40148a.66
jmp 0x402953
push 0xfffffffffffffff0
call fcn.00402dcb
push eax
mov dword [ebp + 8], eax
call fcn.00406041
mov esi, eax
cmp esi, ebx
je 0x401656
push 0x5c
push esi
call fcn.00405fc3
mov esi, eax
mov di, word [esi]
mov word [esi], bx
cmp di, bx
jne 0x401629
cmp dword [ebp - 0x28], ebx
je 0x401629
call fcn.00405c92
test eax, eax
je 0x401629
push dword [ebp + 8]
call fcn.00405c1b
jmp 0x401631
push dword [ebp + 8]
call fcn.00405c75
cmp eax, ebx
je 0x40164c
cmp eax, 0xb7
jne 0x401649
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40164c
inc dword [ebp - 4]
mov word [esi], di
inc esi
inc esi
cmp di, bx
jne 0x4015fc
cmp dword [ebp - 0x2c], ebx
je 0x401688
push 0xffffffffffffffe6
call fcn.00401423
push dword [ebp + 8]
push 0x4d0000
call fcn.004066c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x40148a.66
inc dword [ebp - 4]
jmp case.0x40148a.66
push 0xfffffffffffffff5
jmp 0x402316
push ebx
call fcn.00402dcb
push eax
call fcn.00406a24
jmp 0x401d4d
push 0xffffffffffffffd0
call fcn.00402dcb
push 0xffffffffffffffdf
mov esi, eax
call fcn.00402dcb
push 0x13
mov edi, eax
call fcn.00402dcb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4016cc
push 0xffffffffffffffe3
jmp 0x402316
cmp dword [ebp - 0x28], ebx
je 0x402953
push esi
call fcn.00406a24
test eax, eax
je 0x402953
push edi
push esi
call fcn.00406487
push 0xffffffffffffffe4
jmp 0x402316
push ebx
call fcn.00402dcb
mov edi, dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401735
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40173f
cmp word [eax], bx
je 0x40173f
push esi
call fcn.00406a24
cmp eax, ebx
je 0x401735
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.004066c7
jmp 0x40173f
mov dword [ebp - 4], 1
mov word [edi], bx
cmp dword [ebp - 0x28], ebx
jne case.0x40148a.66
push 0x2000
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x40148a.66
push 0xffffffffffffffff
call fcn.00402dcb
lea ecx, [ebp + 8]
push ecx
push edi
push 0x2000
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x40148a.66
jmp 0x402921
push 0xffffffffffffffef
call fcn.00402dcb
push eax
push edi
call fcn.004061e6
jmp 0x4015d9
push 0x31
call fcn.00402dcb
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
push dword [ebp - 8]
and eax, 7
mov dword [ebp + 8], eax
call fcn.0040600d
push dword [ebp - 8]
mov edi, 0x40a620
test eax, eax
je 0x4017c3
push edi
call fcn.004066c7
jmp 0x4017da
push 0x4d0000
push edi
call fcn.004066c7
push eax
call fcn.00405f96
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.00406975
cmp dword [ebp + 8], 3
jl 0x401817
push edi
call fcn.00406a24
xor ecx, ecx
cmp eax, ebx
je 0x401802
lea ecx, [ebp - 0x24]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jne 0x401822
push edi
call fcn.00406192
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.004061b7
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
jne 0x4018b2
cmp dword [ebp + 8], ebx
jne 0x401894
push esi
push 0x412620
call fcn.004066c7
push edi
push esi
call fcn.004066c7
push dword [ebp - 0x1c]
push 0x40e620
call fcn.00406704
push 0x412620
push esi
call fcn.004066c7
mov eax, dword [ebp - 0x30]
sar eax, 3
push eax
push 0x40e620
call fcn.00405d27
sub eax, 4
je 0x4017e0
dec eax
je 0x4018a7
push edi
push 0xfffffffffffffffa
jmp 0x401493
push dword [ebp - 8]
push 0xffffffffffffffe2
call fcn.0040574c
cmp dword [ebp + 8], 2
jmp 0x4015db
inc dword [0x476fc8]
jmp 0x402c58
push dword [ebp - 8]
push 0xffffffffffffffea
call fcn.0040574c
inc dword [0x476ff4]
push ebx
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call fcn.004033bb
dec dword [0x476ff4]
cmp dword [ebp - 0x24], 0xffffffff
mov esi, eax
jne 0x4018e3
cmp dword [ebp - 0x20], 0xffffffff
je 0x4018f5
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jge case.0x40148a.66
cmp esi, 0xfffffffe
jne 0x40191e
push 0xffffffffffffffe9
push edi
call fcn.00406704
push dword [ebp - 8]
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401926
push 0xffffffffffffffee
push edi
call fcn.00406704
push 0x200010
push edi
jmp 0x4023bd
push ebx
jmp 0x401968
push 0x31
call fcn.00402dcb
push dword [ebp - 0x30]
push eax
call fcn.00405d27
cmp eax, ebx
je 0x402953
cmp eax, dword [ebp - 0x28]
je 0x401ac1
cmp eax, dword [ebp - 0x20]
jne case.0x40148a.66
mov eax, dword [ebp - 0x1c]
jmp case.0x40148a.2
push 0xfffffffffffffff0
call fcn.00402dcb
push dword [ebp - 0x2c]
push eax
call fcn.00405dd3
jmp case.0x40148a.66
push 1
call fcn.00402dcb
push eax
call sub.KERNEL32.dll_lstrlenW
jmp 0x40265d
push 2
call fcn.00402da9
push 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call fcn.00402da9
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x14]
pop ecx
push 1
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
mov dword [ebp + 8], eax
call fcn.00402dcb
push eax
mov dword [ebp - 0x44], eax
call sub.KERNEL32.dll_lstrlenW
cmp dword [ebp - 0x10], ebx
mov word [edi], bx
jne 0x4019cc
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
je case.0x40148a.66
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
jge 0x4019e7
lea esi, [eax + ecx]
cmp esi, ebx
jl case.0x40148a.66
cmp esi, eax
jle 0x4019ed
mov esi, eax
mov eax, dword [ebp - 0x44]
lea eax, [eax + esi*2]
push eax
push edi
call fcn.004066c7
cmp dword [ebp + 8], ebx
jge 0x401a0d
push edi
call sub.KERNEL32.dll_lstrlenW
add dword [ebp + 8], eax
jns 0x401a0d
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
cmp eax, 0x2000
jge case.0x40148a.66
mov word [edi + eax*2], bx
jmp case.0x40148a.66
push 0x20
call fcn.00402dcb
push 0x31
mov esi, eax
call fcn.00402dcb
cmp dword [ebp - 0x20], ebx
push eax
push esi
jne 0x401a4d
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401ac1
mov eax, dword [ebp - 0x28]
jmp case.0x40148a.2
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401a41
xor esi, esi
inc esi
push esi
call fcn.00402dcb
push 0x2000
push edi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401a85
cmp dword [ebp - 0x28], ebx
je 0x401a8b
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401a8b
mov dword [ebp - 4], esi
mov word [edi], bx
mov word [edi + 0x3ffe], bx
jmp case.0x40148a.66
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.00402da9
push 1
mov edi, eax
mov dword [ebp - 0x10], edx
call fcn.00402da9
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x10], edx
jne 0x401abd
cmp edi, eax
jl 0x401ac1
jle 0x401a45
jmp 0x401acf
cmp edi, eax
jae 0x401ac9
mov eax, dword [ebp - 0x24]
jmp case.0x40148a.2
jbe 0x401a45
mov eax, dword [ebp - 0x20]
jmp case.0x40148a.2
push 1
call fcn.00402da9
mov esi, eax
push 2
mov dword [ebp - 0x10], edx
mov dword [ebp + 8], esi
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xd
ja case.default.0x401b00
jmp dword [eax*4 + 0x402d71]
add esi, ecx
jmp 0x401e6d
sub esi, ecx
jmp 0x401e6d
imul ecx, esi
jmp 0x401b34
cmp ecx, ebx
je 0x401b71
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401e6d
or ecx, esi
jmp 0x401b34
and ecx, esi
jmp 0x401b34
xor ecx, esi
mov esi, ecx
jmp 0x401e6d
xor eax, eax
cmp esi, ebx
sete al
jmp 0x401b23
cmp esi, ebx
jne 0x401b59
jmp 0x401b55
xor esi, esi
jmp 0x401e6d
cmp esi, ebx
je 0x401b4a
cmp ecx, ebx
je 0x401b4a
xor esi, esi
inc esi
jmp 0x401e6d
cmp ecx, ebx
je 0x401b71
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401e6d
xor esi, esi
mov dword [ebp - 4], 1
jmp 0x401e6d
shl esi, cl
jmp 0x401e6d
sar esi, cl
jmp 0x401e6d
shr esi, cl
jmp 0x401e6d
mov esi, dword [ebp + 8]
jmp 0x401e6d
push 1
call fcn.00402dcb
push 2
mov esi, eax
call fcn.00402da9
push eax
push esi
push edi
mov dword [ebp - 0x10], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x40148a.66
mov eax, dword [ebp - 0x28]
mov esi, dword [0x41e680]
cmp eax, ebx
je 0x401c11
dec eax
cmp esi, ebx
je 0x4023af
mov esi, dword [esi]
cmp eax, ebx
jne 0x401bcd
cmp esi, ebx
je 0x4023af
add esi, 4
mov edi, 0x40a620
push esi
push edi
call fcn.004066c7
mov eax, dword [0x41e680]
add eax, 4
push eax
push esi
call fcn.004066c7
mov eax, dword [0x41e680]
push edi
add eax, 4
push eax
jmp 0x402ab9
cmp dword [ebp - 0x2c], ebx
je 0x401c3b
cmp esi, ebx
je 0x402953
lea eax, [esi + 4]
push eax
push edi
call fcn.004066c7
mov eax, dword [esi]
push esi
mov dword [0x41e680], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x40148a.66
push 0x4004
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x30]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406704
mov eax, dword [0x41e680]
mov dword [esi], eax
mov dword [0x41e680], esi
jmp case.0x40148a.66
push 3
call fcn.00402da9
push 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], eax
call fcn.00402da9
test byte [ebp - 0x1c], 1
pop ecx
mov dword [ebp - 0x10], edx
pop ecx
mov dword [ebp + 8], eax
je 0x401c94
push 0x33
call fcn.00402dcb
mov dword [ebp - 0x18], eax
test byte [ebp - 0x1c], 2
je 0x401ca4
push 0x44
call fcn.00402dcb
mov dword [ebp + 8], eax
cmp dword [ebp - 0x34], 0x21
push 1
jne 0x401cf8
call fcn.00402da9
push 2
mov esi, eax
mov dword [ebp - 0x10], edx
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
pop ecx
mov ecx, dword [ebp - 0x1c]
sar ecx, 2
je 0x401ce8
lea edx, [ebp - 0x38]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401d2b
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401d28
call fcn.00402dcb
push 0x12
mov esi, eax
call fcn.00402dcb
mov cx, word [eax]
neg cx
sbb ecx, ecx
and ecx, eax
mov ax, word [esi]
neg ax
sbb eax, eax
push ecx
and eax, esi
push eax
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x30], ebx
jl case.0x40148a.66
push dword [ebp - 0x38]
jmp 0x401592
push ebx
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401a45
mov eax, dword [ebp - 0x2c]
jmp case.0x40148a.2
push 2
call fcn.00402da9
push 1
mov esi, eax
mov dword [ebp - 0x10], edx
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x40265d
mov eax, dword [0x476f88]
mov ecx, dword [ebp - 0x2c]
push ebx
lea esi, [eax + ecx]
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x40148a.66
test byte [ebp - 0x23], 1
je 0x401db9
push 2
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
jmp 0x401dc5
push dword [ebp - 0x28]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], eax
mov eax, ecx
mov esi, ecx
and eax, 3
and esi, 4
mov dword [ebp - 0x38], eax
mov eax, ecx
shr eax, 0x1f
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 0x1e
and eax, 1
test ecx, 0x10000
mov dword [ebp - 0x40], eax
je 0x401dfc
push 0x11
call fcn.00402dcb
jmp 0x401e00
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x24]
and eax, 0xfef0
push eax
mov eax, dword [ebp - 0x54]
imul eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x58]
imul eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x38]
neg esi
push dword [ebp - 0x44]
sbb esi, esi
and esi, dword [0x476f40]
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
push esi
push dword [ebp - 0x38]
push 0x172
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je 0x401e64
cmp dword [ebp - 0x38], ebx
jne 0x401e64
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x30], ebx
jl case.0x40148a.66
push esi
jmp 0x401592
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov esi, eax
call fcn.00402da9
pop ecx
mov ebx, eax
push 0x48
push 0x5a
push esi
mov dword [ebp - 0x10], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp - 8]
neg eax
mov dword [0x41e620], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00402da9
mov dword [0x41e630], eax
mov al, byte [ebp - 0x20]
pop ecx
mov dword [ebp - 0x10], edx
push dword [ebp - 0x2c]
mov cl, al
and cl, 1
mov byte [0x41e637], 1
mov byte [0x41e634], cl
mov cl, al
and cl, 2
and al, 4
push 0x41e63c
mov byte [0x41e635], cl
mov byte [0x41e636], al
call fcn.00406704
push 0x41e620
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x40265d
push ebx
call fcn.00402da9
push 1
mov esi, eax
mov dword [ebp - 0x10], edx
call fcn.00402da9
cmp dword [ebp - 0x24], ebx
pop ecx
pop ecx
mov dword [ebp - 0x10], edx
push eax
push esi
jne 0x401f2c
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40148a.66
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x40148a.66
push ebx
call fcn.00402dcb
push 0x31
mov esi, eax
call fcn.00402dcb
push 0x22
mov ebx, eax
call fcn.00402dcb
push 0x15
mov edi, eax
call fcn.00402dcb
push 0xffffffffffffffec
call fcn.00401423
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x70], eax
mov ax, word [esi]
neg ax
sbb eax, eax
mov dword [ebp - 0x7c], ebx
and eax, esi
mov dword [ebp - 0x80], eax
mov ax, word [edi]
neg ax
sbb eax, eax
mov dword [ebp - 0x74], 0x4d0000
and eax, edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00405ced
test eax, eax
je 0x402953
test byte [ebp - 0x88], 0x40
je case.0x40148a.66
push dword [ebp - 0x54]
call fcn.00406b66
push dword [ebp - 0x54]
jmp 0x402010
push ebx
call fcn.00402dcb
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.0040574c
push esi
call fcn.00405caa
mov esi, eax
cmp esi, ebx
je 0x402953
cmp dword [ebp - 0x28], ebx
je 0x40200f
push esi
call fcn.00406b66
cmp dword [ebp - 0x2c], ebx
jl 0x402004
push eax
push dword [ebp - 0xc]
call fcn.0040660e
jmp 0x40200f
cmp eax, ebx
je 0x40200f
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x40148a.66
push 2
call fcn.00402dcb
push eax
call fcn.00406a24
mov esi, eax
cmp esi, ebx
je 0x402041
push dword [esi + 0x14]
push dword [ebp - 0xc]
call fcn.0040660e
push dword [esi + 0x18]
jmp 0x401592
mov eax, dword [ebp - 0xc]
mov word [edi], bx
mov word [eax], bx
jmp 0x402953
push 0xffffffffffffffee
call fcn.00402dcb
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x38], eax
push ecx
push eax
push 0xb
call fcn.00406abb
call eax
mov esi, eax
mov eax, dword [ebp - 0xc]
mov word [edi], bx
cmp esi, ebx
mov word [eax], bx
mov dword [ebp - 4], 1
je case.0x40148a.66
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je case.0x40148a.66
push 0xc
call fcn.00406abb
push 0xd
mov dword [ebp - 0x40], eax
call fcn.00406abb
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
push esi
push ebx
push dword [ebp - 0x38]
call dword [ebp - 0x40]
test eax, eax
je 0x4020f4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x40a014
push dword [ebp + 8]
call dword [ebp - 0x18]
test eax, eax
je 0x4020f4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
push dword [eax + ecx*4 + 8]
push edi
call fcn.0040660e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
push dword [ecx + eax*4 + 0xc]
push dword [ebp - 0xc]
call fcn.0040660e
mov dword [ebp - 4], ebx
push dword [ebp + 8]
jmp 0x401c30
cmp dword [0x477000], ebx
mov dword [ebp - 4], 1
jl 0x4021c8
push 0xfffffffffffffff0
call fcn.00402dcb
push 1
mov edi, eax
call fcn.00402dcb
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x44], eax
je 0x402135
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x402146
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4021c1
push dword [ebp - 0x44]
push dword [ebp + 8]
call fcn.00406b2a
mov edi, eax
cmp edi, ebx
je 0x402190
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
je 0x402176
push dword [ebp - 0x28]
call fcn.00401423
call edi
test eax, eax
je 0x40219a
mov dword [ebp - 4], 1
jmp 0x40219a
push section..data
push 0x41e680
push esi
push 0x2000
push dword [ebp - 8]
call edi
add esp, 0x14
jmp 0x40219a
push dword [ebp - 0x44]
push 0xfffffffffffffff7
call fcn.0040574c
cmp dword [ebp - 0x24], ebx
jne case.0x40148a.66
push dword [ebp + 8]
call fcn.00403d39
test eax, eax
je case.0x40148a.66
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x40148a.66
push 0xfffffffffffffff6
jmp 0x402316
push 0xffffffffffffffe7
jmp 0x402316
push 0xfffffffffffffff0
call fcn.00402dcb
push 0xffffffffffffffdf
mov dword [ebp - 0x10], eax
call fcn.00402dcb
push 2
mov dword [ebp - 0x44], eax
call fcn.00402dcb
push 0xffffffffffffffcd
mov dword [ebp - 8], eax
call fcn.00402dcb
push 0x45
mov dword [ebp - 0x4c], eax
call fcn.00402dcb
push dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov edi, eax
mov esi, eax
and ecx, 0xfff
sar eax, 0x10
sar esi, 0xc
and eax, 0xffff
mov dword [ebp - 0x50], ecx
and edi, 0x8000
and esi, 7
mov dword [ebp - 0x40], eax
call fcn.0040600d
test eax, eax
jne 0x40223d
push 0x21
call fcn.00402dcb
lea eax, [ebp + 8]
push eax
push 0x4085d8
push 1
push ebx
push 0x4085e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40230d
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x38]
push edx
push 0x4085f8
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jl 0x4022ff
mov eax, dword [ebp + 8]
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp edi, ebx
mov dword [ebp - 0x18], eax
jne 0x402299
mov eax, dword [ebp + 8]
push 0x4d0000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp esi, ebx
je 0x4022a7
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp - 0x4c]
cmp word [ecx], bx
je 0x4022c8
mov eax, dword [ebp + 8]
push dword [ebp - 0x50]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x18], ebx
jl 0x4022f6
mov eax, dword [ebp - 0x38]
push 1
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x18], ebx
jge 0x402320
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
call fcn.00401423
jmp case.0x40148a.66
push 0xfffffffffffffff4
jmp 0x402316
push ebx
call fcn.00402dcb
push 0x11
mov esi, eax
call fcn.00402dcb
push 0x23
mov edi, eax
call fcn.00402dcb
push esi
mov dword [ebp + 8], eax
call fcn.00406a24
test eax, eax
jne 0x402356
push ebx
push 0xfffffffffffffff9
call fcn.0040574c
jmp 0x402953
mov eax, dword [ebp - 8]
push esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 2
call sub.KERNEL32.dll_lstrlenW
push edi
mov word [esi + eax*2 + 2], bx
call sub.KERNEL32.dll_lstrlenW
mov word [edi + eax*2 + 2], bx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x56], eax
mov word [ebp - 0x60], cx
call fcn.0040574c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x40148a.66
jmp 0x402349
cmp eax, 0xbadf00d
je 0x4023cc
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00406704
push eax
call fcn.00405d27
mov eax, 0x7fffffff
jmp case.0x40148a.2
inc dword [0x476fd4]
jmp case.0x40148a.66
xor esi, esi
xor edi, edi
cmp eax, ebx
je 0x4023e7
push ebx
call fcn.00402dcb
mov esi, eax
cmp dword [ebp - 0x2c], ebx
je 0x4023f5
push 0x11
call fcn.00402dcb
mov edi, eax
cmp dword [ebp - 0x20], ebx
je 0x402403
push 0x22
call fcn.00402dcb
mov ebx, eax
push 0xffffffffffffffcd
call fcn.00402dcb
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4015d9
mov eax, dword [0x40a010]
push 1
mov dword [ebp + 8], eax
call fcn.00402dcb
push 0x12
mov esi, eax
call fcn.00402dcb
push 0xffffffffffffffdd
mov dword [ebp - 0x10], eax
call fcn.00402dcb
push eax
push 0x1fff
lea eax, [ebp + 8]
push edi
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], 0xa
jmp 0x401776
cmp dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x2c]
jne 0x40248c
push 2
call fcn.00402e0b
mov esi, eax
cmp esi, ebx
je 0x402953
push 0x33
call fcn.00402dcb
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4024a2
push 0x22
call fcn.00402dcb
mov ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push eax
push esi
call fcn.00402e89
mov edi, eax
cmp edi, ebx
je case.0x40148a.66
jmp 0x402953
mov esi, dword [ebp - 0x20]
mov edi, eax
mov eax, dword [ebp - 0x1c]
push 2
mov dword [ebp - 0x10], eax
call fcn.00402dcb
push 0x11
mov dword [ebp - 0x44], eax
call fcn.00402dcb
push 2
push eax
push edi
mov dword [ebp - 4], 1
call fcn.00402e5b
cmp eax, ebx
mov dword [ebp + 8], eax
je case.0x40148a.66
xor eax, eax
cmp esi, 1
mov edi, 0x412620
jne 0x402503
push 0x23
call fcn.00402dcb
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [eax + eax + 2]
cmp esi, 4
jne 0x40251a
push 3
call fcn.00402da9
pop ecx
mov dword [0x412620], eax
push esi
mov dword [ebp - 0x38], edx
pop eax
cmp esi, 3
jne 0x40252e
push 0xc000
push edi
push ebx
push dword [ebp - 0x24]
call fcn.004033bb
push eax
push edi
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x44]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402547
mov dword [ebp - 4], ebx
push dword [ebp + 8]
jmp 0x402622
push 0x20019
call fcn.00402e0b
push 0x33
mov esi, eax
call fcn.00402dcb
cmp esi, ebx
mov word [edi], bx
je 0x402953
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4000
push ecx
lea ecx, [ebp + 8]
push edi
push ecx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4025bb
cmp dword [ebp + 8], 4
je 0x4025a6
cmp dword [ebp + 8], ecx
je 0x40259e
cmp dword [ebp + 8], 2
jne 0x4025bb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
jmp 0x40261a
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x20], ebx
push edi
sete al
mov dword [ebp - 4], eax
call fcn.0040660e
jmp 0x402621
mov word [edi], bx
mov dword [ebp - 4], ecx
jmp 0x402621
push 0x20019
call fcn.00402e0b
push 3
mov esi, eax
call fcn.00402da9
cmp esi, ebx
pop ecx
mov dword [ebp - 0x10], edx
mov word [edi], bx
je 0x402953
cmp dword [ebp - 0x20], ebx
mov ecx, 0x1fff
mov dword [ebp + 8], ecx
je 0x4025fe
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40261a
push ebx
push ebx
push ebx
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40261a
mov dword [ebp - 4], 1
mov word [edi + 0x3ffe], bx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x40148a.66
push edi
call fcn.00406627
cmp eax, ebx
je case.0x40148a.66
push eax
jmp 0x402010
push 0xffffffffffffffed
call fcn.00402dcb
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.004061b7
cmp eax, 0xffffffff
je 0x402950
push eax
jmp 0x401592
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp edx, 0x38
mov dword [ebp - 0x10], eax
sete cl
cmp eax, ebx
mov esi, ecx
je 0x402692
push 1
call fcn.00402da9
mov word [0x40e620], ax
xor eax, eax
cmp esi, ebx
pop ecx
sete al
mov dword [ebp - 0x44], edx
inc eax
jmp 0x4026d1
cmp edx, 0x38
jne 0x4026c2
push 0x21
call fcn.00402dcb
push 0x2000
push 0x40e620
push 0x412620
call fcn.004066e9
add esp, 0xc
push 0x40e620
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4026d1
push 0x11
call fcn.00402dcb
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
cmp word [edi], bx
mov dword [ebp + 8], eax
je 0x402953
push edi
call fcn.00406627
or esi, dword [ebp - 0x10]
mov edi, eax
jne 0x4026fe
cmp dword [ebp - 0x24], ebx
je 0x4026fe
push edi
push edi
call fcn.00406298
test eax, eax
jl 0x402953
push dword [ebp + 8]
push 0x40e620
push edi
call fcn.00406269
jmp 0x4015d9
push 2
mov dword [ebp - 8], ebx
pop eax
push eax
mov dword [ebp - 0x4c], eax
call fcn.00402da9
cmp eax, 1
pop ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x44], eax
jl case.0x40148a.66
mov ecx, 0x1fff
cmp eax, ecx
jle 0x40273c
mov dword [ebp - 0x44], ecx
cmp word [edi], bx
je 0x4028a3
push edi
mov dword [ebp - 0x38], ebx
call fcn.00406627
cmp dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], eax
jle 0x4028a3
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x34], 0x39
jne 0x4027f9
lea eax, [ebp - 0x40]
push ebx
push eax
push 2
pop eax
sub eax, dword [ebp - 0x24]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4028a3
mov ecx, dword [ebp - 0x40]
cmp ecx, ebx
je 0x4028a3
movzx ax, byte [ebp + 0xa]
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
jne 0x40285f
lea eax, [ebp - 0x50]
push 1
push eax
lea eax, [ebp + 0xa]
push ecx
push eax
push 8
push ebx
call esi
test eax, eax
jne 0x402826
mov edi, dword [ebp - 0x4c]
neg edi
dec dword [ebp - 0x40]
mov eax, 0xfffd
mov dword [ebp - 0x50], eax
je 0x402829
dec dword [ebp - 0x4c]
inc edi
push 1
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x50]
push 1
push eax
lea eax, [ebp + 0xa]
push dword [ebp - 0x40]
push eax
push 8
push ebx
call esi
test eax, eax
je 0x4027c3
jmp 0x402826
cmp dword [ebp - 0x24], ebx
jne 0x402814
cmp dword [ebp - 8], ebx
jne 0x402814
push ebx
push dword [ebp - 0x18]
call fcn.00406298
test eax, eax
jl 0x4028a3
lea eax, [ebp - 0x50]
push 2
push eax
push dword [ebp - 0x18]
call fcn.0040623a
test eax, eax
je 0x4028a3
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x24], ebx
jne 0x40285f
cmp word [ebp - 0x38], 0xd
je 0x402870
cmp word [ebp - 0x38], 0xa
je 0x402870
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
cmp ax, bx
mov word [ecx + edx*2], ax
mov dword [ebp - 0x38], eax
je 0x4028a3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x44]
jl 0x402760
jmp 0x4028a3
movzx eax, ax
push eax
push dword [ebp - 0xc]
call fcn.0040660e
jmp 0x402c58
cmp word [ebp - 0x38], ax
je 0x402891
cmp ax, 0xd
je 0x402882
cmp ax, 0xa
jne 0x402891
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov word [ecx + edx*2], ax
jmp 0x4028a3
mov eax, dword [ebp - 0x4c]
push 1
neg eax
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, ebx
mov word [ecx + eax*2], bx
jmp 0x4015db
cmp word [edi], bx
je case.0x40148a.66
push 2
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
push dword [ebp - 0x24]
push ebx
push eax
push edi
call fcn.00406627
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x2c], ebx
jl case.0x40148a.66
push eax
jmp 0x402bc6
push edi
call fcn.00406627
cmp eax, ebx
je case.0x40148a.66
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x40148a.66
push dword [ebp - 0xc]
call fcn.00406627
cmp eax, ebx
je 0x402921
lea ecx, [ebp - 0x2dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402968
mov dword [ebp - 4], 1
mov word [edi], bx
jmp case.0x40148a.66
push 2
call fcn.00402dcb
lea ecx, [ebp - 0x2dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40295f
mov eax, dword [ebp - 0xc]
mov word [eax], bx
mov word [edi], bx
mov dword [ebp - 4], 1
jmp case.0x40148a.66
push eax
push dword [ebp - 0xc]
call fcn.0040660e
lea eax, [ebp - 0x2b0]
push eax
push edi
jmp 0x402ab9
push 0xfffffffffffffff0
mov edi, 0xfffffd66
call fcn.00402dcb
mov esi, eax
push esi
mov dword [ebp - 0x40], esi
call fcn.0040600d
test eax, eax
jne 0x402997
push 0xffffffffffffffed
call fcn.00402dcb
push esi
call fcn.00406192
push 2
push 0x40000000
push esi
call fcn.004061b7
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x402a60
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], eax
je 0x402a48
mov eax, dword [0x476f54]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x44], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x402a48
push ebx
call fcn.00403642
push dword [ebp - 0x44]
push edi
call fcn.0040362c
push dword [ebp - 0x28]
push 0x40
call esi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x402a31
push dword [ebp - 0x28]
push esi
push ebx
push dword [ebp - 0x2c]
call fcn.004033bb
jmp 0x402a24
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add esi, 8
push ecx
add eax, edi
push esi
push eax
mov dword [ebp - 0x3c], ecx
call fcn.00406172
add esi, dword [ebp - 0x3c]
cmp byte [esi], bl
jne 0x402a0c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x44]
push edi
push dword [ebp + 8]
call fcn.00406269
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or dword [ebp - 0x38], 0xffffffff
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x38]
call fcn.004033bb
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
cmp edi, ebx
pop esi
jge 0x402a7a
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
push esi
jmp 0x402316
push ebx
call fcn.00402da9
mov edi, eax
pop ecx
cmp edi, dword [0x476f6c]
mov dword [ebp - 0x10], edx
jae 0x402953
mov esi, edi
mov eax, dword [ebp - 0x28]
imul esi, esi, 0x4018
add esi, dword [0x476f68]
cmp eax, ebx
jl 0x402ac9
mov ecx, dword [esi + eax*4]
jne 0x402ac3
add esi, 0x18
push esi
push dword [ebp - 0xc]
call fcn.004066c7
jmp case.0x40148a.66
push ecx
jmp 0x402bc6
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x28], ecx
je 0x402ae3
push 1
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], eax
jmp 0x402af3
push dword [ebp - 0x20]
lea eax, [esi + 0x18]
push eax
call fcn.00406704
or byte [esi + 9], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x24], ebx
je case.0x40148a.66
push edi
call fcn.0040117d
jmp case.0x40148a.66
push ebx
call fcn.00402da9
cmp eax, 0x20
pop ecx
mov dword [ebp - 0x10], edx
jae 0x402953
cmp dword [ebp - 0x24], ebx
je 0x402b4a
cmp dword [ebp - 0x28], ebx
je 0x402b3f
push eax
call fcn.00401299
push ebx
push ebx
call fcn.004011ef
jmp case.0x40148a.66
push ebx
call fcn.004012e2
jmp 0x4028e3
cmp dword [ebp - 0x28], ebx
je 0x402b64
mov edx, dword [0x476f50]
mov ecx, dword [ebp - 0x2c]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x40148a.66
mov ecx, dword [0x476f50]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0xc]
call fcn.00406704
jmp case.0x40148a.66
mov eax, dword [ebp - 0x24]
sub eax, ebx
je 0x402bd0
dec eax
jne case.0x40148a.66
push 2
call fcn.00402da9
push 4
mov esi, eax
mov dword [ebp - 0x10], edx
call fcn.00402da9
pop ecx
mov dword [ebp - 0x10], edx
pop ecx
mov dword [ebp + 8], ebx
movzx ecx, al
shr eax, 0x18
cmp esi, ebx
jne 0x402bb6
mov esi, 0x476fc0
add eax, esi
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406172
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0040660e
jmp case.0x40148a.66
push 5
call fcn.00406abb
push 0x22
mov esi, eax
call fcn.00402dcb
cmp esi, ebx
je 0x402c1b
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jl 0x402c1b
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 0x24]
lea eax, [ebp - 0x60]
push eax
call esi
test eax, eax
jl 0x402c1b
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.004066c7
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x40148a.66
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], 1
mov word [eax], bx
jmp case.0x40148a.66
mov ecx, dword [0x45c2a8]
push ebx
and ecx, eax
push ecx
push 0xb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x30], ebx
je case.0x40148a.66
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x476fc8], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4