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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
xor ebx, ebx
sub eax, ebx
mov dword [esp + 0x18], 0xc0000135
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x486f88
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 0x28], edi
je 0x407795
dec eax
je 0x407669
dec eax
je 0x4075cb
dec eax
je 0x40751b
mov dword [esp + 0x18], 0xc0000002
jmp 0x4077f3
push 0xb
lea esi, [esp + 0x14]
call fcn.0040739b
cmp eax, ebx
pop ecx
mov dword [esp + 0x18], eax
jl 0x4077f3
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
cmp dword [edi], ebx
jbe 0x4077f3
mov dword [esp + 0x10], 0xfffffff0
sub dword [esp + 0x10], edi
lea esi, [edi + 0x10]
jmp 0x40755e
xor ebx, ebx
cmp dword [esp + 0xc], ebx
je 0x4077f3
mov eax, dword [esi - 4]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 0xe]
add eax, dword [esp + 0x10]
add eax, esi
lea eax, [eax + edi + 0x20]
call fcn.0040a430
mov ebx, eax
test ebx, ebx
je 0x4075b4
push ebx
lea eax, [esp + 0x20]
push eax
call sub.ntdll.dll_RtlInitUnicodeString
push dword [ebp + 0xc]
and dword [esp + 0x34], 0
lea eax, [esp + 0x28]
push eax
call dword [ebp + 8]
push ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add esi, 0x11c
cmp eax, dword [edi]
jb 0x40755c
jmp 0x4077f3
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 4]
mov edx, dword [eax]
push 4
call fcn.00406c81
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, ebx
je 0x4077f3
mov dword [esp + 0x14], ebx
cmp dword [ecx], ebx
jbe 0x4077ef
lea ebx, [ecx + 0xc]
cmp dword [esp + 0xc], 0
je 0x407662
mov eax, dword [ebx - 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
add eax, dword [ebx + 0xc]
je 0x407653
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 + 0x20]
push eax
call sub.ntdll.dll_RtlInitUnicodeString
lea esi, [esp + 0x24]
call fcn.004077fe
push dword [ebp + 0xc]
mov eax, esi
push eax
call dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add ebx, 0x6c
cmp eax, dword [ecx]
jb 0x4075fd
xor ebx, ebx
jmp 0x4077ef
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x48]
mov ecx, edi
call fcn.004078d7
test eax, eax
je 0x4077f3
lea eax, [esp + 0x8c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
push 0x24
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00406657
add esp, 0xc
test eax, eax
je 0x4077f3
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0x54]
add eax, 0xfffffff8
add edi, 0xc
jmp 0x40778b
cmp dword [esp + 0xc], ebx
je 0x4077ef
mov dword [esp + 0x38], eax
push 0x34
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x60]
push eax
mov dword [esp + 0x4c], ecx
call fcn.00406657
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x407784
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
shr eax, 0x10
push eax
push 0x40
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x407784
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x1e]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00406657
add esp, 0xc
test eax, eax
je 0x40777a
lea esi, [esp + 0x24]
call fcn.004077fe
push dword [ebp + 0xc]
mov eax, esi
push eax
call dword [ebp + 8]
mov dword [esp + 0xc], eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff8
cmp eax, edi
jne 0x4076c9
jmp 0x4077ef
lea eax, [esp + 0x48]
mov ecx, edi
call fcn.004078d7
test eax, eax
je 0x4077f3
mov eax, dword [esp + 0x54]
mov edi, dword [eax + 0x14]
jmp 0x4077e5
cmp dword [esp + 0xc], ebx
je 0x4077ef
mov eax, dword [edi + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x2c]
lea esi, [esp + 0x24]
mov dword [esp + 0x34], eax
call fcn.004077fe
push dword [ebp + 0xc]
mov eax, esi
push eax
call dword [ebp + 8]
mov edi, dword [edi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
sub edi, 8
add eax, 0xc
cmp edi, eax
jne 0x4077ad
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret