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

Disassembly:
push 0xffffffffffffffff
push 0x661300
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8a0c44]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
cmp dword [edi + 0x160], 0
je 0x40bdc8
mov ecx, dword [edi + 0x160]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push str.fcpae
call edx
test al, al
je 0x40bdc8
mov ecx, dword [edi + 0x160]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ebx, dword [esp + 0x74]
mov esi, eax
push ebx
lea ecx, [esp + 0x2c]
dec esi
call fcn.00432cd0
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0
call fcn.00432be0
push ebx
lea ecx, [esp + 0x18]
call fcn.00432cd0
mov ecx, dword [edi + 0x160]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x74], 1
call eax
lea ecx, [esp + 0x14]
call fcn.00431730
push eax
lea ecx, [esp + 0x2c]
call fcn.00432690
test eax, eax
je 0x40bc2c
lea ecx, [esp + 0x14]
call fcn.00431730
mov ecx, dword [edi + 0x40]
push eax
push str._try_find__s_n
push ecx
call fcn.00437100
add esp, 0xc
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
push edi
push edx
push eax
call fcn.0040ba40
add esp, 0xc
mov byte [esp + 0x80], al
test al, al
jne 0x40bd4c
mov ebp, dword [esp + 0x78]
test esi, esi
jl 0x40bd8e
lea ebx, [ebx]
push ebp
lea ecx, [esp + 0x54]
call fcn.00432cd0
mov ecx, dword [edi + 0x160]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push esi
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x7c], 2
call edx
lea ecx, [esp + 0x50]
mov bl, al
dec esi
mov byte [esp + 0x6c], 1
call fcn.00431720
test bl, bl
jne 0x40bcaa
test esi, esi
jge 0x40bc60
jmp 0x40bd8e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
call fcn.00432ca0
mov ecx, dword [edi + 0x160]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x74], 3
call edx
test al, al
je 0x40bce6
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.00432580
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 1
call fcn.00431720
lea ecx, [esp + 0x14]
call fcn.00431730
push eax
lea ecx, [esp + 0x2c]
call fcn.00432690
test eax, eax
je 0x40bd26
lea ecx, [esp + 0x14]
call fcn.00431730
mov ecx, dword [edi + 0x40]
push eax
push str._try_find__s_n
push ecx
call fcn.00437100
add esp, 0xc
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
push edi
push edx
push eax
call fcn.0040ba40
add esp, 0xc
mov byte [esp + 0x80], al
test al, al
je 0x40bc52
mov ebx, dword [esp + 0x74]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00432670
test eax, eax
je 0x40bd72
mov edx, dword [edi + 0x40]
push ebx
push str.__s_applied_n
push edx
call fcn.00437100
add esp, 0xc
jmp 0x40bd8e
lea ecx, [esp + 0x14]
call fcn.00431730
push eax
mov eax, dword [edi + 0x40]
push ebx
push str.__s_____s_applied_n
push eax
call fcn.00437100
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 0
call fcn.00431720
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00431720
mov al, byte [esp + 0x80]
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
push edi
push ecx
push edx
call fcn.0040ba40
add esp, 0xc
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret