Function at 0x408318
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.0040ba90
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 0x1318]
mov esi, 0x441e00
mov ecx, 0x100
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1218]
mov esi, 0x441f00
mov ecx, 0x1000
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x443000
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x118], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x108], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x104], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x100], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0xfc], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0xf8], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0xf4], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0xf0], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0xec], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0xe8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0xe4], edx
mov edx, dword [eax + 0x38]
mov dword [ebp - 0xe0], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0xdc], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0xd8], edx
mov edx, dword [eax + 0x44]
mov dword [ebp - 0xd4], edx
mov edx, dword [eax + 0x48]
mov dword [ebp - 0xd0], edx
mov edx, dword [eax + 0x4c]
mov dword [ebp - 0xcc], edx
mov edx, dword [eax + 0x50]
mov dword [ebp - 0xc8], edx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0xc4], edx
mov edx, dword [eax + 0x58]
mov dword [ebp - 0xc0], edx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0xbc], edx
mov edx, dword [eax + 0x60]
mov dword [ebp - 0xb8], edx
mov edx, dword [eax + 0x64]
mov dword [ebp - 0xb4], edx
mov edx, dword [eax + 0x68]
mov dword [ebp - 0xb0], edx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0xac], edx
mov edx, dword [eax + 0x70]
mov dword [ebp - 0xa8], edx
mov edx, dword [eax + 0x74]
mov dword [ebp - 0xa4], edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
mov eax, 0x443080
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x98], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x84], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x80], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x7c], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x78], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x74], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x70], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x6c], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x64], edx
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x44]
mov dword [ebp - 0x54], edx
mov edx, dword [eax + 0x48]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x4c]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x50]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 0x58]
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x64]
mov dword [ebp - 0x34], edx
mov edx, dword [eax + 0x68]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x70]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ebx
xor edx, edx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor esi, esi
push dword [esi*4 + 0x449100]
lea eax, [ebp - 0x1318]
lea ebx, [esi + 1]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x1318]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
test eax, eax
je 0x4086de
push 0x4440dc
lea eax, [ebp - 0x1318]
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4086eb
push dword [ebx*4 + 0x449100]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
push dword [ebx*4 + 0x449104]
lea eax, [ebp - 0x98]
lea esi, [ebx + 2]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x18]
push 0xa
push eax
push edx
call dword [sym.imp.MSVCR71.dll_wcstol]
mov edi, eax
lea edx, [ebp - 0x1318]
push 0x5c
push edx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x408573
lea eax, [ebp - 0x1318]
lea edx, [ebp - 0x14]
push edx
xor ecx, ecx
mov word [ebx], cx
push 0x20019
push ecx
add ebx, 2
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408573
test edi, edi
je 0x4086b0
cmp edi, 1
jne 0x408673
mov edx, dword [ebp - 4]
push edx
push ebx
push dword [ebp - 0x14]
call fcn.00401288
mov dword [ebp - 4], eax
lea edx, [ebp - 0x118]
push eax
push edx
call fcn.004031a8
add esp, 0x14
jmp 0x4086d0
push 0x4434c0
lea edx, [ebp - 0x1218]
push edx
push ebx
push dword [ebp - 0x14]
call fcn.00401164
lea ebx, [ebp - 0x118]
lea ecx, [ebp - 0x1218]
mov edx, 0x800
cmp edi, 0x800
jb 0x4086a3
mov edi, edx
push edi
push ecx
push ebx
call fcn.00402e68
add esp, 0x1c
jmp 0x4086d0
mov edx, dword [ebp - 4]
push edx
push ebx
push dword [ebp - 0x14]
call fcn.00401288
mov dword [ebp - 4], eax
lea edx, [ebp - 0x118]
push eax
push edx
call fcn.00403054
add esp, 0x14
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408573
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
jmp 0x4086e1