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

Disassembly:
push 0xffffffffffffffff
push 0x409a18
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x40f048]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40f048]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
test edi, edi
je 0x4028d4
test eax, eax
je 0x4028d4
mov ecx, edi
mov dword [eax], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402631
sub ecx, edx
sar ecx, 1
add ecx, ecx
cmp ecx, 0x64
mov eax, 0x3e8
cmovl ecx, eax
xor eax, eax
mov dword [esp + 0x24], ecx
shld eax, ecx, 1
add ecx, ecx
mov dword [esp + 0x20], 0
test eax, eax
jne 0x402673
cmp ecx, 0xffffffff
ja 0x402673
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
jmp 0x402675
xor eax, eax
mov dword [esp + 0x28], eax
test eax, eax
je 0x402682
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x80], 0
test eax, eax
je 0x4027bc
mov dword [esi], edi
mov al, byte [0x40ffbc]
xor ebp, ebp
xor cl, cl
mov byte [esp + 0x1b], al
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x1a], 0
mov byte [esp + 0x19], cl
cmp word [edi], bp
je 0x4028b2
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea edi, [ebp + 0x27]
cmp al, 1
jne 0x402795
test ebp, ebp
jne 0x40271c
push str.HKCR
push dword [esi]
call dword [sym.imp.MSVCR110.dll_wcsstr]
add esp, 8
test eax, eax
je 0x402718
mov ecx, dword [esi]
cmp eax, ecx
jne 0x402718
push ecx
call ebx
push eax
mov dword [esi], eax
call ebx
push eax
mov dword [esi], eax
call ebx
push eax
mov dword [esi], eax
call ebx
push str.HKCU_r_n_tSoftware_r_n_t_r_n_t_tClasses
lea ecx, [esp + 0x24]
mov dword [esi], eax
call fcn.00402470
test eax, eax
je 0x4027bc
mov byte [esp + 0x1a], 1
mov cl, byte [esp + 0x19]
mov eax, dword [esi]
cmp di, word [eax]
jne 0x402758
test cl, cl
jne 0x40272e
mov byte [esp + 0x19], 1
jmp 0x402795
push eax
call ebx
cmp di, word [eax]
je 0x40273e
xor al, al
mov byte [esp + 0x19], al
jmp 0x40275c
push dword [esi]
call ebx
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esi], eax
call fcn.00402520
test eax, eax
je 0x4027bc
mov cl, byte [esp + 0x19]
test cl, cl
jne 0x402795
mov eax, dword [esi]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x40276b
inc ebp
mov dword [esp + 0x1c], ebp
cmp eax, 0x7d
jne 0x402795
dec ebp
mov dword [esp + 0x1c], ebp
jne 0x402795
cmp byte [esp + 0x1a], 1
jne 0x402795
push str._r_n_t_r_n_r_n
lea ecx, [esp + 0x24]
call fcn.00402470
test eax, eax
je 0x4027bc
mov byte [esp + 0x1a], 0
mov eax, dword [esi]
cmp word [eax], 0x25
jne 0x4027a8
push eax
call ebx
mov dword [esi], eax
cmp word [eax], 0x25
jne 0x4027d2
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.00402520
test eax, eax
jne 0x402873
push dword [esp + 0x28]
mov ebx, 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
jmp 0x4028d9
mov edx, 0x25
mov ecx, eax
call fcn.00402900
mov ebp, eax
test ebp, ebp
je 0x40288c
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
cmp eax, 0x1f
jg 0x40289f
push eax
push ecx
lea eax, [esp + 0x3c]
push 0x20
push eax
call dword [sym.imp.MSVCR110.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.004030d0
mov edi, dword [esi + 4]
lea eax, [esp + 0x34]
lea ebx, [edi + 0x10]
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x30]
push eax
lea ecx, [edi + 4]
call fcn.00402410
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x40288c
push edi
lea ecx, [esp + 0x24]
call fcn.00402470
test eax, eax
je 0x4027bc
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp dword [esi], ebp
je 0x40286a
jmp 0x402860
push dword [esi]
call ebx
mov dword [esi], eax
cmp eax, ebp
jne 0x402860
mov ebp, dword [esp + 0x1c]
mov edi, 0x27
push dword [esi]
call ebx
mov dword [esi], eax
cmp word [eax], 0
je 0x4028b2
mov cl, byte [esp + 0x19]
mov al, byte [esp + 0x1b]
jmp 0x4026c3
push dword [esp + 0x28]
mov ebx, 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
jmp 0x4028d9
push dword [esp + 0x28]
mov ebx, 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
jmp 0x4028d9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], 0
push dword [esp + 0x28]
mov dword [ecx], eax
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
jmp 0x4028d9
mov eax, 0x80004003
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00408ebc
add esp, 0x70
ret 8