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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a13a9
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x4c3204]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4c3204]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov ebx, ecx
push 0x13
pop ecx
mov esi, 0x4a9a88
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1b], 0
movsw word es:[edi], word [esi]
call dword [sym.imp.OLE32.DLL_CoCreateGuid]
test eax, eax
jne 0x4042ae
push 0x27
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLE32.DLL_StringFromGUID2]
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.00477a67
pop ecx
inc eax
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.004774b2
add esp, 0xc
lea ecx, [esp + 0xac]
call fcn.00408677
xor edi, edi
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x4042ae
cmp byte [ebp + 8], 0
je 0x404072
push 0x4a9940
push 0x4a9948
push 0x4a9ad8
mov eax, ebx
call fcn.0040cc9d
add esp, 0xc
call fcn.0040e0fe
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, edi
je 0x40428a
call fcn.00403de8
push 0x4aae40
push 3
pop ecx
call fcn.0040d57f
xor esi, esi
cmp byte [ebx + 0x1f48], 0
pop ecx
jne 0x4040b3
push dword [esp + 0x20]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.00416912
mov esi, eax
push 0x4aae64
push 3
pop ecx
call fcn.0040d57f
pop ecx
cmp esi, edi
jne 0x404266
xor eax, eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x20]
mov ebx, 0x4a9d10
push eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
push 0x4a9a00
lea eax, [esp + 0x94]
mov dword [esp + 0x214], edi
call fcn.00404c61
push 0x4a9b24
lea eax, [esp + 0x78]
mov byte [esp + 0x214], 2
call fcn.00404c61
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x214], 4
call fcn.004042ec
pop ecx
test al, al
je 0x4041b4
push dword [esp + 0x44]
lea eax, [esp + 0x94]
push dword [esp + 0x44]
push dword [esp + 0x44]
push 0x4a9b54
call fcn.0040cc9d
mov eax, dword [esp + 0x58]
add esp, 0x10
cmp dword [esp + 0x5c], 8
jae 0x404174
lea eax, [esp + 0x48]
cmp eax, edi
jne 0x40417d
mov eax, 0x4aa904
push eax
lea eax, [esp + 0x24]
call fcn.00404c61
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x28]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x218], 6
call fcn.00404d40
push 1
xor edi, edi
lea esi, [esp + 0x24]
mov byte [esp + 0x214], 4
call fcn.00404dda
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x210], 7
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x4041e0
lea eax, [esp + 0x90]
cmp dword [esp + 0x88], 8
mov ecx, dword [esp + 0x74]
jae 0x4041f2
lea ecx, [esp + 0x74]
push eax
push dword [esp + 0x20]
lea edi, [esp + 0x28]
push dword [esp + 0x20]
call fcn.0040e17a
add esp, 0xc
test eax, eax
mov eax, edi
mov byte [esp + 0x210], 4
push eax
jne 0x40421b
mov byte [esp + 0x1b], 1
call fcn.00404e9f
push 1
xor edi, edi
lea esi, [esp + 0x78]
mov byte [esp + 0x214], 2
call fcn.00404dda
push 1
lea esi, [esp + 0x94]
mov byte [esp + 0x214], 0
call fcn.00404dda
or dword [esp + 0x210], 0xffffffff
push 1
lea esi, [esp + 0x4c]
mov dword [esp + 0x68], ebx
call fcn.00404dda
mov ebx, dword [esp + 0x18]
push 0x4aad48
push 3
pop ecx
call fcn.0040d57f
mov eax, dword [ebx]
pop ecx
push 1
mov ecx, ebx
call dword [eax]
push 0x4aad6c
push 3
pop ecx
call fcn.0040d57f
pop ecx
call dword [sym.imp.ADVAPI32.DLL_RevertToSelf]
test eax, eax
jne 0x4042a7
push 0x4a9b68
push 2
pop ecx
call fcn.0040d57f
pop ecx
mov byte [esp + 0x17], 0
movzx eax, byte [esp + 0x17]
jmp 0x4042b0
xor eax, eax
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.00475a38
mov esp, ebp
pop ebp
ret