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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
xor ebx, ebx
sub eax, ebx
mov dword [esp + 0x1c], 0xc0000135
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x4fdef0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0x2c], edi
je 0x40a2a6
dec eax
je 0x40a177
dec eax
je 0x40a0d7
dec eax
je 0x40a025
mov dword [esp + 0x1c], 0xc0000002
jmp 0x40a304
push ebx
push 0xb
lea esi, [esp + 0x1c]
call fcn.00409e94
cmp eax, ebx
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
jl 0x40a304
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ebx
cmp dword [edi], ebx
jbe 0x40a304
mov dword [esp + 0x14], 0xfffffff0
sub dword [esp + 0x14], edi
lea esi, [edi + 0x10]
jmp 0x40a06a
xor ebx, ebx
cmp dword [esp + 0x10], ebx
je 0x40a304
mov eax, dword [esi - 4]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov dword [esp + 0x30], eax
movzx eax, word [esi + 0xe]
add eax, dword [esp + 0x14]
add eax, esi
lea eax, [eax + edi + 0x20]
call fcn.0040ee54
mov ebx, eax
test ebx, ebx
je 0x40a0c0
push ebx
lea eax, [esp + 0x24]
push eax
call sub.ntdll.dll_RtlInitUnicodeString
push dword [ebp + 0xc]
and dword [esp + 0x38], 0
lea eax, [esp + 0x2c]
push eax
call dword [ebp + 8]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add esi, 0x11c
cmp eax, dword [edi]
jb 0x40a068
jmp 0x40a304
lea eax, [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
mov edx, dword [eax]
push ebx
push 4
call fcn.0040935f
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp ecx, ebx
je 0x40a304
mov dword [esp + 0x18], ebx
cmp dword [ecx], ebx
jbe 0x40a300
lea ebx, [ecx + 0xc]
cmp dword [esp + 0x10], 0
je 0x40a170
mov eax, dword [ebx - 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
add eax, dword [ebx + 0xc]
je 0x40a161
add eax, 4
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
lea eax, [esp + 0x24]
push eax
call sub.ntdll.dll_RtlInitUnicodeString
lea esi, [esp + 0x28]
call fcn.0040a30f
push dword [ebp + 0xc]
mov eax, esi
push eax
call dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add ebx, 0x6c
cmp eax, dword [ecx]
jb 0x40a10b
xor ebx, ebx
jmp 0x40a300
lea eax, [esp + 0x20]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4c]
mov ecx, edi
call fcn.0040a53a
test eax, eax
je 0x40a304
lea eax, [esp + 0x94]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
push 0x24
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00408e1a
add esp, 0xc
test eax, eax
je 0x40a304
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x58]
add eax, 0xfffffff8
add edi, 0xc
jmp 0x40a29c
cmp dword [esp + 0x10], ebx
je 0x40a300
mov dword [esp + 0x3c], eax
push 0x34
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x68]
push eax
mov dword [esp + 0x50], ecx
call fcn.00408e1a
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x40a295
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x20], eax
shr eax, 0x10
push eax
push 0x40
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x40a295
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0x22]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00408e1a
add esp, 0xc
test eax, eax
je 0x40a28b
lea esi, [esp + 0x28]
call fcn.0040a30f
push dword [ebp + 0xc]
mov eax, esi
push eax
call dword [ebp + 8]
mov dword [esp + 0x10], eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x68]
add eax, 0xfffffff8
cmp eax, edi
jne 0x40a1d7
jmp 0x40a300
lea eax, [esp + 0x4c]
mov ecx, edi
call fcn.0040a53a
test eax, eax
je 0x40a304
mov eax, dword [esp + 0x58]
mov edi, dword [eax + 0x14]
jmp 0x40a2f6
cmp dword [esp + 0x10], ebx
je 0x40a300
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x30], eax
lea eax, [edi + 0x2c]
lea esi, [esp + 0x28]
mov dword [esp + 0x38], eax
call fcn.0040a30f
push dword [ebp + 0xc]
mov eax, esi
push eax
call dword [ebp + 8]
mov edi, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
sub edi, 8
add eax, 0xc
cmp edi, eax
jne 0x40a2be
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret