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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x4b21c4]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
call fcn.0046b6a2
xor eax, eax
mov dword [esp + 0x1d8], 0x1000200
mov dword [esp + 0x1dc], 0x5020001
lea edi, [esp + 0x1f5]
mov dword [esp + 0x1e0], 0x10300
xor ecx, ecx
mov dword [esp + 0x1e4], 0x6000204
mov esi, 0x11c
mov dword [esp + 0x1e8], 0x7080001
mov dword [esp + 0x1ec], 0x30900
mov dword [esp + 0x1f0], 0xc00010a
mov byte [esp + 0x1f4], 7
stosd dword es:[edi], eax
push esi
push ecx
mov dword [esp + 0x3c], ecx
stosw word es:[edi], ax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ecx
stosb byte es:[edi], al
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0xb8], esi
lea eax, [esp + 0xb8]
xor edi, edi
mov dword [esp + 0x3c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4697bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0046b326
mov esi, eax
jmp 0x469bc0
push dword [esp + 0xc8]
lea eax, [esp + 0x30]
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push 0x4098d8
push eax
call fcn.0046a8b1
mov esi, eax
add esp, 0x14
test esi, esi
js 0x469bc0
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 3]
shr eax, 1
and eax, 1
push eax
lea eax, [esp + 0x30]
push 0x409944
push eax
call fcn.0046a8b1
mov esi, eax
add esp, 0xc
test esi, esi
js 0x469bc0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SLC.dll_SLOpen]
mov esi, eax
test esi, esi
js 0x469bc0
push ecx
push ecx
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004a58e8
mov esi, eax
test esi, esi
js 0x469bc0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x30]
lea edx, [esp + 0x1e4]
push ecx
call fcn.004a5868
mov esi, eax
test esi, esi
js 0x469bc0
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0046a807
mov esi, eax
test esi, esi
js 0x469bc0
push dword [esp + 0x4c]
lea eax, [esp + 0x30]
push 0x409954
push eax
call fcn.0046a8b1
mov esi, eax
add esp, 0xc
test esi, esi
js 0x469bc0
lea ecx, [esp + 0x90]
call fcn.004ab1c3
mov esi, eax
test esi, esi
js 0x469bc0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x54]
push eax
push 0x40a1c8
lea edx, [esp + 0x98]
call fcn.00469eee
mov esi, eax
test esi, esi
js 0x469bc0
cmp dword [esp + 0x54], edi
je 0x469a98
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
push dword [esp + 0xa8]
lea edx, [esp + 0x80]
lea ecx, [esp + 0x78]
call fcn.0046aad6
mov esi, eax
test esi, esi
js 0x469bc0
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4697ab
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x80]
call fcn.0046abcd
mov esi, eax
test esi, esi
js 0x469bc0
push dword [esp + 0x3c]
push 0x409968
lea eax, [esp + 0x34]
push eax
call fcn.0046a8b1
mov esi, eax
add esp, 0xc
test esi, esi
js 0x469bc0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x64]
push eax
push 0x409990
push dword [esp + 0x1c]
call dword [sym.imp.SLC.dll_SLGetServiceInformation]
test eax, eax
js 0x4699bd
cmp dword [esp + 0x5c], 1
jne 0x4699bd
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push 0x4099b0
push eax
call fcn.0046a8b1
mov esi, eax
add esp, 0xc
test esi, esi
js 0x469bc0
lea eax, [esp + 0x60]
push eax
push 0x4099e8
call dword [sym.imp.SLC.dll_SLGetWindowsInformationDWORD]
mov esi, eax
test esi, esi
js 0x469bc0
push dword [esp + 0x60]
lea eax, [esp + 0x30]
push 0x409a28
push eax
call fcn.0046a8b1
mov esi, eax
add esp, 0xc
test esi, esi
js 0x469bc0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [eax*2 + 2]
call fcn.0046a807
mov esi, eax
test esi, esi
js 0x469bc0
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push 0x409a5c
push eax
call fcn.00469445
mov esi, eax
add esp, 0xc
test esi, esi
js 0x469bc0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
push dword [esp + 0x54]
push 0x40a224
call dword [sym.imp.SLC.dll_SLGetGenuineInformation]
test eax, eax
jns 0x469b62
test dword [0x468c50], 0x100
mov esi, 0x4b2618
je 0x469afc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4b2270]
test eax, eax
jne 0x469aea
push edi
call fcn.004a449c
test eax, eax
js 0x469af5
mov dword [0x4b2270], 1
jmp 0x469af5
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push dword [esp + 0x64]
push ecx
call fcn.004ad0a1
mov esi, eax
test esi, esi
jns 0x469ab6
mov ecx, esi
call fcn.0046b33e
mov ecx, esi
call fcn.0046b356
test esi, esi
js 0x469bc0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
call fcn.0046b2da
mov esi, eax
test esi, esi
js 0x469bc0
push dword [esp + 0x40]
push 0x409980
jmp 0x46995d
cmp eax, 0xffffffff
je 0x469af5
inc eax
mov dword [0x4b2270], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00469f62
mov esi, eax
test esi, esi
js 0x469bc0
test dword [0x468c50], 0x100
je 0x469b62
push 0x4b2618
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4b2270]
cmp eax, 1
jne 0x469b48
push eax
call fcn.004a449c
mov dword [0x4b2270], edi
jmp 0x469b57
cmp eax, 0xffffffff
je 0x469b57
test eax, eax
je 0x469b57
dec eax
mov dword [0x4b2270], eax
push 0x4b2618
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x38], 1
jbe 0x469bc7
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x24]
test eax, eax
je 0x469cc7
mov ecx, eax
call fcn.0046b2da
mov esi, eax
test esi, esi
js 0x469bc0
test ebx, ebx
jne 0x469b8f
mov ebx, 0x409a90
lea eax, [esp + 0x44]
mov edx, ebx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0046ad53
mov esi, eax
test esi, esi
js 0x469bc0
mov edx, dword [esp + 0x38]
push dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
lea edx, [edx - 1]
call fcn.0046ac11
mov esi, eax
test esi, esi
jns 0x469bc7
mov ecx, esi
call fcn.0046b33e
mov ecx, esi
call fcn.0046b356
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x469bdb
call fcn.0046b1e2
cmp dword [esp + 0x18], edi
je 0x469bf3
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x469c00
call fcn.0046b1e2
cmp dword [esp + 0x14], edi
je 0x469c1c
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x14], edi
cmp dword [esp + 0xc], edi
je 0x469c30
push dword [esp + 0xc]
call dword [sym.imp.SLC.dll_SLClose]
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x469c3d
call fcn.0046b1e2
lea ecx, [esp + 0x2c]
call fcn.0046b6a2
cmp dword [esp + 0x20], edi
je 0x469c56
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x469c63
call fcn.0046b1e2
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x469c70
call fcn.0046b1e2
cmp dword [esp + 0x10], edi
je 0x469c84
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x469c91
call fcn.0046b1e2
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x469c9e
call fcn.0046b1e2
cmp dword [esp + 0x28], edi
je 0x469cae
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x1fc]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ae550
mov esp, ebp
pop ebp
ret 4
call fcn.0046ae09
jmp 0x469b80