Function at 0x402fa0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41782e
push eax
mov eax, 0x375c
mov dword fs:[0], esp
call fcn.0040a170
push ebx
push ebp
push esi
push edi
mov edx, 0x5c
mov edi, 0x73
mov word [esp + 0x290], dx
mov word [esp + 0x29c], di
mov word [esp + 0x2a0], di
mov word [esp + 0x2a2], dx
mov ecx, 0x49
mov eax, 0x6e
mov esi, 0x72
mov ebp, 0x61
mov edx, 0x69
mov edi, 0x65
xor ebx, ebx
mov word [esp + 0x280], 0x53
mov word [esp + 0x282], 0x4f
mov word [esp + 0x284], 0x46
mov word [esp + 0x286], 0x54
mov word [esp + 0x288], 0x57
mov word [esp + 0x28a], 0x41
mov word [esp + 0x28c], 0x52
mov word [esp + 0x28e], 0x45
mov word [esp + 0x292], cx
mov word [esp + 0x294], ax
mov word [esp + 0x296], 0x66
mov word [esp + 0x298], si
mov word [esp + 0x29a], bp
mov word [esp + 0x29e], 0x79
mov word [esp + 0x2a4], dx
mov word [esp + 0x2a6], 0x47
mov word [esp + 0x2a8], 0x6f
mov word [esp + 0x2aa], 0x75
mov word [esp + 0x2ac], si
mov word [esp + 0x2ae], 0x6d
mov word [esp + 0x2b0], bp
mov word [esp + 0x2b2], 0x74
mov word [esp + 0x2b4], di
mov word [esp + 0x2b6], bx
mov word [esp + 0xa8], 0x50
mov word [esp + 0xaa], bp
mov word [esp + 0xac], 0x74
mov word [esp + 0xae], 0x68
mov word [esp + 0xb0], bx
mov word [esp + 0xa0], dx
mov word [esp + 0xa2], 0x67
mov word [esp + 0xa4], 0x6d
mov word [esp + 0xa6], bx
mov word [esp + 0x19c], dx
mov word [esp + 0x19e], 0x47
mov word [esp + 0x1a0], 0x6d
mov word [esp + 0x1a2], bp
mov word [esp + 0x1a4], 0x74
mov word [esp + 0x1a6], di
mov word [esp + 0x1a8], 0x5c
mov word [esp + 0x1aa], 0x50
mov word [esp + 0x1ac], si
mov word [esp + 0x1ae], 0x6f
mov word [esp + 0x1b0], 0x67
mov word [esp + 0x1b2], si
mov word [esp + 0x1b4], bp
mov word [esp + 0x1b6], 0x6d
mov word [esp + 0x1b8], 0x5c
mov word [esp + 0x1ba], 0x62
mov word [esp + 0x1bc], dx
mov word [esp + 0x1be], ax
mov word [esp + 0x1c0], bx
mov word [esp + 0xf8], 0x6c
mov word [esp + 0xfa], dx
mov word [esp + 0xfc], 0x63
mov word [esp + 0xfe], di
mov word [esp + 0x100], ax
mov word [esp + 0x102], 0x73
mov ebp, 0x2e
mov word [esp + 0x104], di
mov word [esp + 0x106], bp
mov word [esp + 0x108], 0x78
mov word [esp + 0x10a], 0x6d
mov word [esp + 0x10c], 0x6c
mov word [esp + 0x10e], bx
mov word [esp + 0xb4], 0x44
mov word [esp + 0xb6], di
mov word [esp + 0xb8], 0x76
mov word [esp + 0xba], di
mov word [esp + 0xbc], 0x6c
mov word [esp + 0xbe], 0x6f
mov word [esp + 0xc0], 0x70
mov word [esp + 0xc2], 0x6d
mov word [esp + 0xc4], di
mov word [esp + 0xc6], ax
mov word [esp + 0xc8], 0x74
mov word [esp + 0xca], bx
mov word [esp + 0x1c4], cx
mov word [esp + 0x1c6], ax
mov word [esp + 0x1c8], 0x66
mov word [esp + 0x1ca], cx
mov word [esp + 0x1cc], 0x47
mov word [esp + 0x1ce], 0x4d
mov word [esp + 0x1d0], 0x50
mov word [esp + 0x1d2], 0x4f
mov word [esp + 0x1d4], 0x53
mov word [esp + 0x1d6], 0x41
mov word [esp + 0x1d8], 0x70
mov word [esp + 0x1da], 0x70
mov word [esp + 0x1dc], bp
mov word [esp + 0x1de], 0x42
mov word [esp + 0x1e0], si
mov word [esp + 0x1e2], 0x61
mov word [esp + 0x1e4], dx
mov word [esp + 0x1e6], ax
mov word [esp + 0x1e8], bx
mov word [esp + 0x130], cx
mov word [esp + 0x132], ax
mov word [esp + 0x134], 0x66
mov word [esp + 0x136], cx
mov word [esp + 0x138], 0x47
mov word [esp + 0x13a], 0x4d
mov word [esp + 0x13c], 0x50
mov word [esp + 0x13e], 0x44
mov word [esp + 0x140], 0x41
mov word [esp + 0x142], 0x41
mov word [esp + 0x144], 0x70
mov word [esp + 0x146], 0x70
mov word [esp + 0x148], bp
mov word [esp + 0x14a], 0x50
mov word [esp + 0x14c], 0x44
mov word [esp + 0x14e], 0x41
mov word [esp + 0x150], bx
mov word [esp + 0x244], cx
mov word [esp + 0x246], ax
mov word [esp + 0x248], 0x66
mov word [esp + 0x24a], cx
mov word [esp + 0x24c], 0x47
mov word [esp + 0x24e], 0x4d
mov word [esp + 0x250], 0x4b
mov word [esp + 0x252], dx
mov word [esp + 0x254], 0x74
mov word [esp + 0x256], 0x4d
mov word [esp + 0x258], 0x6f
mov word [esp + 0x25a], ax
mov word [esp + 0x25c], bp
mov word [esp + 0x25e], 0x63
mov word [esp + 0x260], 0x4b
mov word [esp + 0x262], dx
mov word [esp + 0x264], 0x74
mov word [esp + 0x266], 0x63
mov word [esp + 0x268], 0x68
mov word [esp + 0x26a], di
mov word [esp + 0x26c], ax
mov word [esp + 0x26e], 0x4d
mov word [esp + 0x270], 0x6f
mov word [esp + 0x272], ax
mov word [esp + 0x274], dx
mov word [esp + 0x276], 0x74
mov word [esp + 0x196], dx
mov word [esp + 0x172], dx
mov word [esp + 0x118], dx
mov word [esp + 0x20c], dx
mov edx, 0x25
mov word [esp + 0x278], 0x6f
mov word [esp + 0x27a], si
mov word [esp + 0x27c], bx
mov word [esp + 0x178], cx
mov word [esp + 0x17a], ax
mov word [esp + 0x17c], 0x66
mov word [esp + 0x17e], cx
mov word [esp + 0x180], 0x47
mov word [esp + 0x182], 0x4d
mov word [esp + 0x184], 0x50
mov word [esp + 0x186], 0x4f
mov word [esp + 0x188], 0x53
mov word [esp + 0x18a], 0x50
mov word [esp + 0x18c], 0x42
mov word [esp + 0x18e], bp
mov word [esp + 0x190], 0x42
mov word [esp + 0x192], si
mov word [esp + 0x194], 0x61
mov word [esp + 0x198], ax
mov word [esp + 0x19a], bx
mov word [esp + 0x154], cx
mov word [esp + 0x156], ax
mov word [esp + 0x158], 0x66
mov word [esp + 0x15a], cx
mov word [esp + 0x15c], 0x47
mov word [esp + 0x15e], 0x4d
mov word [esp + 0x160], 0x76
mov word [esp + 0x162], 0x74
mov word [esp + 0x164], 0x43
mov word [esp + 0x166], 0x66
mov word [esp + 0x168], 0x67
mov word [esp + 0x16a], bp
mov word [esp + 0x16c], 0x42
mov word [esp + 0x16e], si
mov word [esp + 0x170], 0x61
mov word [esp + 0x174], ax
mov word [esp + 0x176], bx
mov word [esp + 0x110], cx
mov word [esp + 0x112], ax
mov word [esp + 0x114], 0x66
mov word [esp + 0x116], 0x57
mov word [esp + 0x11a], ax
mov word [esp + 0x11c], 0x44
mov word [esp + 0x11e], 0x42
mov word [esp + 0x120], 0x45
mov word [esp + 0x122], bp
mov word [esp + 0x124], 0x63
mov word [esp + 0x126], 0x44
mov word [esp + 0x128], 0x42
mov word [esp + 0x12a], 0x45
mov word [esp + 0x12c], bx
mov word [esp + 0x1ec], cx
mov word [esp + 0x1ee], ax
mov word [esp + 0x1f0], 0x66
mov word [esp + 0x1f2], cx
mov word [esp + 0x1f4], 0x47
mov word [esp + 0x1f6], 0x4d
mov word [esp + 0x1f8], 0x52
mov word [esp + 0x1fa], di
mov word [esp + 0x1fc], 0x73
mov word [esp + 0x1fe], 0x63
mov word [esp + 0x200], 0x75
mov word [esp + 0x202], di
mov word [esp + 0x204], bp
mov word [esp + 0x206], 0x42
mov word [esp + 0x208], si
mov word [esp + 0x20a], 0x61
mov word [esp + 0x20e], ax
mov word [esp + 0x210], bx
mov word [esp + 0x214], 0x43
mov word [esp + 0x216], 0x4c
mov word [esp + 0x218], 0x53
mov word [esp + 0x21a], cx
mov word [esp + 0x21c], 0x44
mov word [esp + 0x21e], 0x5c
mov word [esp + 0x220], dx
mov word [esp + 0x226], cx
mov ecx, 0x6f
mov word [esp + 0x228], ax
mov word [esp + 0x22e], cx
mov eax, 0x73
mov word [esp + 0xd4], cx
mov ecx, 0x5c
mov word [esp + 0xce], ax
mov word [esp + 0xe2], ax
mov word [esp + 0xee], ax
mov word [esp + 0xf2], ax
mov word [esp + 0xe4], cx
mov word [esp + 0xea], cx
lea eax, [esp + 0x90]
lea ecx, [esp + 0x280]
mov word [esp + 0x22c], si
mov word [esp + 0x236], si
mov word [esp + 0x23c], si
push eax
mov esi, 0x6c
push ecx
push reloc.WS2_32.dll_bind
mov word [esp + 0x22e], 0x73
mov word [esp + 0x230], 0x5c
mov word [esp + 0x236], 0x70
mov word [esp + 0x23c], 0x63
mov word [esp + 0x23e], 0x53
mov word [esp + 0x240], di
mov word [esp + 0x244], 0x76
mov word [esp + 0x246], di
mov word [esp + 0x24a], 0x33
mov word [esp + 0x24c], 0x32
mov word [esp + 0x24e], bx
mov word [esp + 0xd8], dx
mov word [esp + 0xdc], bp
mov word [esp + 0xde], si
mov word [esp + 0xe2], 0x63
mov word [esp + 0xe4], 0x61
mov word [esp + 0xe6], si
mov word [esp + 0xe8], bx
mov word [esp + 0xec], dx
mov word [esp + 0xf2], bp
mov word [esp + 0xf4], bp
mov word [esp + 0xf8], dx
mov word [esp + 0xfc], dx
mov word [esp + 0x100], bx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], 0x808
mov byte [esp + 0x27], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea edx, [esp + 0x98]
lea eax, [esp + 0x2758]
push edx
mov edx, dword [esp + 0x94]
push eax
push ebx
lea ecx, [esp + 0xb4]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x3774], ebx
push ecx
push 0x41a310
push 7
push ebx
push str.m_3kD
mov dword [esp + 0xa8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4039f8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, ebx
jl 0x4039ee
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x41a520
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esp + 0x10], ebx
jne 0x403a05
mov eax, esi
jmp 0x404278
push ecx
mov dword [esp + 0x20], esp
mov edi, esp
push 0xc
call fcn.00409a2a
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp esi, ebx
mov byte [esp + 0x3778], 1
je 0x403a5f
lea edx, [esp + 0xa4]
mov dword [esi + 4], ebx
push edx
mov dword [esi + 8], 1
call ebp
cmp eax, ebx
mov dword [esi], eax
jne 0x403a61
lea eax, [esp + 0xa4]
test eax, eax
je 0x403a61
push 0x8007000e
call fcn.00409180
jmp 0x403a61
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x3778], bl
mov dword [edi], esi
jne 0x403a78
push 0x8007000e
call fcn.00409180
lea ecx, [esp + 0x14]
mov byte [esp + 0x3778], bl
call fcn.004045b0
mov ecx, eax
call fcn.00404340
lea ecx, [esp + 0x19c]
lea edx, [esp + 0x2758]
push ecx
push edx
call fcn.00409da7
add esp, 8
lea eax, [esp + 0x94]
lea edx, [esp + 0xf8]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004042a0
push ecx
lea eax, [esp + 0x2764]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x3784], 3
call fcn.004042a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3780], bl
call fcn.004045b0
mov ecx, eax
call fcn.004044c0
cmp ax, 0xffff
jne 0x403c38
push ecx
mov dword [esp + 0x18], esp
mov edi, esp
push 0xc
call fcn.00409a2a
mov esi, eax
add esp, 4
mov dword [esp + 0x2bc], esi
cmp esi, ebx
mov byte [esp + 0x3778], 5
je 0x403b57
lea ecx, [esp + 0xb8]
mov dword [esi + 4], ebx
push ecx
mov dword [esi + 8], 1
call ebp
cmp eax, ebx
mov dword [esi], eax
jne 0x403b59
lea edx, [esp + 0xb8]
test edx, edx
je 0x403b59
push 0x8007000e
call fcn.00409180
jmp 0x403b59
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x3778], bl
mov dword [edi], esi
jne 0x403b70
push 0x8007000e
call fcn.00409180
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x377c], bl
call fcn.004045b0
mov ecx, eax
call fcn.004043e0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x3774], 7
cmp eax, ebx
je 0x403ba0
mov eax, dword [eax]
jmp 0x403ba2
xor eax, eax
push eax
call fcn.0040a138
add esp, 4
cmp eax, 1
jne 0x403bf1
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x403bc6
push 0x80004003
call fcn.00409180
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
push eax
mov esi, eax
call dword [ecx + 0x48]
cmp eax, ebx
jge 0x403be5
push 0x41a520
push esi
push eax
call fcn.0040918e
cmp word [esp + 0x14], bx
je 0x403bf1
mov byte [esp + 0x1b], 1
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x3774], bl
cmp esi, ebx
je 0x403c38
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x403c38
cmp esi, ebx
je 0x403c38
mov eax, dword [esi]
cmp eax, ebx
je 0x403c1f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403c2f
push eax
call fcn.004093f5
add esp, 4
push esi
call fcn.004093f5
add esp, 4
mov eax, dword [esp + 0x94]
cmp eax, ebx
je 0x403c50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x403c6e
mov ecx, eax
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x10], eax
je 0x403c6e
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp byte [esp + 0x1b], bl
je 0x403c90
cmp eax, ebx
mov dword [esp + 0x3774], 0xffffffff
je 0x403c89
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x404278
mov ebp, dword [esp + 0x377c]
push ebx
push ebx
push 0xffffffffffffffff
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
dec edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
cmp esi, ebx
je 0x403cc2
push edi
push esi
push 0xffffffffffffffff
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, 0xda
mov cl, 0x59
mov byte [esp + 0x27], al
mov byte [esp + 0x44], al
mov al, 0xb9
mov byte [esp + 0x29], cl
mov byte [esp + 0x3d], cl
mov byte [esp + 0x4b], al
mov byte [esp + 0x5c], al
mov cl, 0x82
mov dl, 0xaa
mov al, 0xb4
mov byte [esp + 0x20], 0xa8
mov byte [esp + 0x21], 0xd1
mov byte [esp + 0x22], 0x56
mov byte [esp + 0x23], 0x90
mov byte [esp + 0x24], 0x96
mov byte [esp + 0x25], 0x8c
mov byte [esp + 0x26], 0xed
mov byte [esp + 0x28], 0x35
mov byte [esp + 0x2a], 0xa0
mov byte [esp + 0x2b], 0xc9
mov byte [esp + 0x2c], 0x81
mov byte [esp + 0x2d], 0xb6
mov byte [esp + 0x2e], 0xe7
mov byte [esp + 0x2f], 0xcb
mov byte [esp + 0x30], 0xfd
mov byte [esp + 0x31], 0x3c
mov byte [esp + 0x32], 0xb3
mov byte [esp + 0x33], 0x16
mov byte [esp + 0x34], 0xd4
mov byte [esp + 0x35], 0x41
mov byte [esp + 0x36], 0x57
mov byte [esp + 0x37], 0x79
mov byte [esp + 0x38], 0x3e
mov byte [esp + 0x39], 0x6e
mov byte [esp + 0x3a], 0x6a
mov byte [esp + 0x3b], 0x94
mov byte [esp + 0x3c], 0xc7
mov byte [esp + 0x3e], cl
mov byte [esp + 0x3f], 0x8f
mov byte [esp + 0x40], 0x11
mov byte [esp + 0x41], 0x52
mov byte [esp + 0x42], dl
mov byte [esp + 0x43], 0x88
mov byte [esp + 0x45], 0xb
mov byte [esp + 0x46], 0x73
mov byte [esp + 0x47], 0x39
mov byte [esp + 0x48], 0xf5
mov byte [esp + 0x49], 2
mov byte [esp + 0x4a], 0x6d
mov byte [esp + 0x4c], 0x65
mov byte [esp + 0x4d], 0x25
mov byte [esp + 0x4e], 0x92
mov byte [esp + 0x4f], 0x99
mov byte [esp + 0x50], 0xfb
mov byte [esp + 0x51], 0x69
mov byte [esp + 0x52], 0xc5
mov byte [esp + 0x53], 0x7e
mov byte [esp + 0x54], 0x61
mov byte [esp + 0x55], 0x22
mov byte [esp + 0x56], 0x74
mov byte [esp + 0x57], 0xe9
mov byte [esp + 0x58], 0x25
mov byte [esp + 0x59], 0xaf
mov byte [esp + 0x5a], 0x44
mov byte [esp + 0x5b], 0x2e
mov byte [esp + 0x5d], 0xd
mov byte [esp + 0x5e], 0xc1
mov byte [esp + 0x5f], 0x85
mov byte [esp + 0x60], dl
mov byte [esp + 0x61], 0xb1
mov byte [esp + 0x62], 0xdc
mov byte [esp + 0x63], 0x30
mov byte [esp + 0x64], al
mov byte [esp + 0x65], bl
mov byte [esp + 0x66], 0x2d
mov byte [esp + 0x67], 0x60
mov byte [esp + 0x68], 0xb8
mov byte [esp + 0x69], 0xcf
mov byte [esp + 0x6a], 0x54
mov dl, 0xad
mov byte [esp + 0x6b], al
mov byte [esp + 0x6e], dl
mov byte [esp + 0x84], dl
lea edx, [esp + 0x1c4]
mov byte [esp + 0x6c], 0x34
push edx
push esi
mov byte [esp + 0x75], 5
mov byte [esp + 0x77], 0x89
mov byte [esp + 0x78], 0x41
mov byte [esp + 0x79], 0x39
mov byte [esp + 0x7a], 0xc6
mov byte [esp + 0x7b], 0xf7
mov byte [esp + 0x7c], 0x1f
mov byte [esp + 0x7d], 0xa1
mov byte [esp + 0x7e], 0xef
mov byte [esp + 0x7f], 0x6e
mov byte [esp + 0x80], 0xff
mov byte [esp + 0x81], 0xcc
mov byte [esp + 0x82], 0xcf
mov byte [esp + 0x83], 0x36
mov byte [esp + 0x84], al
mov byte [esp + 0x85], 0x97
mov byte [esp + 0x86], 0x8d
mov byte [esp + 0x87], 0xec
mov byte [esp + 0x88], 0xb6
mov byte [esp + 0x89], cl
mov byte [esp + 0x8a], 0x4e
mov byte [esp + 0x8b], 0x71
mov byte [esp + 0x8d], 0xe8
mov byte [esp + 0x8e], 0x6d
mov byte [esp + 0x8f], 0x22
mov byte [esp + 0x90], 0xa6
mov byte [esp + 0x91], 0xfe
mov byte [esp + 0x92], 0xa3
mov byte [esp + 0x93], cl
mov byte [esp + 0x94], 4
mov byte [esp + 0x95], 0x53
mov byte [esp + 0x96], 0x45
mov byte [esp + 0x97], 0x66
call fcn.0040a059
add esp, 8
test eax, eax
jne 0x403f55
mov dword [esp + 0x14], ebx
jmp 0x404014
lea eax, [esp + 0x130]
push eax
push esi
call fcn.0040a059
add esp, 8
test eax, eax
jne 0x403f77
mov dword [esp + 0x14], 1
jmp 0x404014
lea ecx, [esp + 0x244]
push ecx
push esi
call fcn.0040a059
add esp, 8
test eax, eax
jne 0x403f96
mov dword [esp + 0x14], 2
jmp 0x404014
lea edx, [esp + 0x178]
push edx
push esi
call fcn.0040a059
add esp, 8
test eax, eax
jne 0x403fb5
mov dword [esp + 0x14], 3
jmp 0x404014
lea eax, [esp + 0x154]
push eax
push esi
call fcn.0040a059
add esp, 8
test eax, eax
jne 0x403fd4
mov dword [esp + 0x14], 4
jmp 0x404014
lea ecx, [esp + 0x110]
push ecx
push esi
call fcn.0040a059
add esp, 8
test eax, eax
jne 0x403ff3
mov dword [esp + 0x14], 5
jmp 0x404014
lea edx, [esp + 0x1ec]
push edx
push esi
call fcn.0040a059
add esp, 8
test eax, eax
jne 0x40425a
mov dword [esp + 0x14], 6
lea eax, [esp + 0x2c0]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jne 0x4040c7
lea edx, [esp + 0x9c]
lea eax, [esp + 0x2c0]
push edx
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x214]
push ecx
lea eax, [esp + 0x1f58]
push edx
push eax
mov dword [esp + 0xa4], 0x400
call fcn.00409fea
mov ecx, dword [esp + 0xa8]
add esp, 0xc
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edx, [esp + 0x98]
lea eax, [esp + 0xf40]
push edx
lea ecx, [esp + 0x1f58]
push eax
push ecx
push bind
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, ebx
jne 0x4040c7
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea edx, [esp + 0x4e8]
lea eax, [esp + 0xf40]
push edx
push eax
call edi
cmp eax, 0xffffffff
jne 0x4040ea
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3774], 0xffffffff
cmp eax, ebx
je 0x4040e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x4e2b
jmp 0x404278
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call ebp
lea edx, [esp + 0x738]
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x738]
lea ecx, [esp + 0xcc]
push eax
push ecx
lea edx, [esp + 0x2e8]
push 0x104
push edx
call fcn.00409f7a
add esp, 0x10
lea eax, [esp + 0x4e8]
lea ecx, [esp + 0x2e0]
push eax
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4041e5
lea edx, [esp + 0x940]
lea eax, [esp + 0xb40]
push edx
lea ecx, [esp + 0xd44]
push eax
lea edx, [esp + 0x2c0]
push ecx
lea eax, [esp + 0xf4c]
push edx
push eax
call fcn.00409df6
add esp, 0x14
lea ecx, [esp + 0x940]
lea edx, [esp + 0xb40]
lea eax, [esp + 0x738]
push ecx
push edx
lea ecx, [esp + 0xe8]
push eax
push ecx
lea edx, [esp + 0x2f0]
push 0x104
push edx
call fcn.00409f7a
add esp, 0x18
push esi
call ebp
lea eax, [esp + 0x4e8]
lea ecx, [esp + 0x2e0]
push eax
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4041e5
lea edx, [esp + 0x2e0]
lea eax, [esp + 0xf40]
push edx
push eax
call fcn.00409dd1
add esp, 8
push esi
call ebp
lea ecx, [esp + 0x2d0]
lea edx, [esp + 0xf40]
push ecx
push edx
call fcn.00402db0
add esp, 8
test al, al
jne 0x40421c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3774], 0xffffffff
cmp eax, ebx
je 0x404273
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404273
mov ecx, dword [esp + 0x14]
xor eax, eax
shl ecx, 4
lea esi, [esp + ecx + 0x20]
mov dl, byte [esp + eax + 0x2d0]
mov cl, byte [eax + esi]
cmp dl, cl
jne 0x404201
inc eax
cmp eax, 0x10
jl 0x404229
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3774], 0xffffffff
cmp eax, ebx
je 0x404256
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x404278
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3774], 0xffffffff
cmp eax, ebx
je 0x404273
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x4e38
mov ecx, dword [esp + 0x376c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3768
ret