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

Disassembly:
push esi
push ebx
mov esi, ecx
push edi
mov ebx, dword [esi + 0x88]
mov eax, ebx
mov ecx, dword [esi + 0x3c]
and eax, 0xffffff8b
mov dword [esi + 0x88], eax
mov edi, ebx
lea eax, [esi + 0xa8]
shr edi, 7
push eax
and edi, 1
mov dword [esi + 0x78], 0
lea eax, [esi + 0x10]
mov byte [esi + 0x7c], 0xff
push eax
mov eax, edi
mov dword [esi + 0x80], 0
or eax, 2
mov dword [esi + 0x84], 0
mov edx, dword [ecx]
and ebx, 0x8a
cmp bl, 0x8a
cmovne eax, edi
lea edi, [esi + 0x40]
push eax
mov eax, dword [edx + 0x18]
push edi
call eax
test al, al
jne 0x40b447
push 1
push 0
push 0
call sub.KERNEL32.dll_RaiseFailFastException
cmp dword [esi + 0xa8], 0
lea ebx, [esi + 0xa8]
je 0x40b45d
or dword [esi + 0x88], 0x20
mov ecx, dword [esi + 0x3c]
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebx]
mov dl, al
test ecx, ecx
je 0x40b47d
test byte [esi + 0x88], 0x80
jne 0x40b630
mov ecx, dword [esi + 0x30]
xor bl, bl
mov dword [esi + 0xc], ecx
mov dword [esi + 0xa4], ecx
cmp ecx, 0x408f72
je 0x40b4e3
cmp ecx, 0x408f8c
je 0x40b4e3
cmp ecx, 0x402fef
je 0x40b4dc
cmp ecx, 0x402f6a
je 0x40b4dc
cmp ecx, 0x403050
je 0x40b4dc
cmp ecx, 0x40309c
je 0x40b4d5
cmp ecx, 0x403162
je 0x40b4d5
xor eax, eax
cmp ecx, 0x4031aa
mov ecx, 3
cmove eax, ecx
jmp 0x40b4e8
mov eax, 2
jmp 0x40b4e8
mov eax, 1
jmp 0x40b4e8
mov eax, 4
test dl, dl
je 0x40b545
cmp eax, 2
jne 0x40b51f
mov eax, dword [esi + 8]
mov ecx, esi
mov dword [esi + 0x90], eax
call fcn.0040b750
mov eax, dword [esi + 0x88]
test eax, 2
sete bl
test eax, 2
jne 0x40b68a
jmp 0x40b5cb
cmp eax, 3
je 0x40b660
test eax, eax
jne 0x40b676
test byte [esi + 0x88], 2
je 0x40b68a
mov edi, dword [esi + 8]
jmp 0x40b5da
test eax, eax
je 0x40b68a
cmp eax, 4
je 0x40b683
cmp eax, 1
jne 0x40b676
test byte [esi + 0x88], al
je 0x40b571
push eax
push 0
push 0
call sub.KERNEL32.dll_RaiseFailFastException
mov ecx, dword [esi + 0x2c]
add ecx, 0xc4
test byte [esi + 0x88], 2
lea eax, [ecx + 8]
mov dword [esi + 0x20], eax
lea eax, [ecx + 0xc]
mov dword [esi + 0x28], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ecx + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx]
mov dword [esi + 0x30], eax
mov ecx, dword [ecx + 4]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0xa4], eax
je 0x40b68a
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x40b68a
cmp ecx, eax
jbe 0x40b68a
mov bl, 1
push dword [esi + 0x8c]
mov ecx, esi
call fcn.0040af80
mov edi, eax
test edi, edi
je 0x40b669
mov ecx, esi
call fcn.0040ad30
cmp dword [esi + 8], edi
je 0x40b5f9
push 1
push 0
push 0
call sub.KERNEL32.dll_RaiseFailFastException
cmp dword [esi + 0x80], 0
je 0x40b60d
push 1
push 0
push 0
call sub.KERNEL32.dll_RaiseFailFastException
cmp dword [0x64a5ec], 7
jb 0x40b3d5
push str.__KeepUnwinding___n
push 0
push 0x20
call fcn.0040aa10
add esp, 0xc
jmp 0x40b3d5
cmp ecx, 0xffffffff
jne 0x40b648
mov dword [esi + 0xc], 0
mov dword [esi + 0xa4], 0
jmp 0x40b68a
push 0x8a
push ecx
push dword [esi]
mov ecx, esi
call fcn.0040b1a0
or dword [esi + 0x88], 0x20
jmp 0x40b68a
mov ecx, esi
call fcn.0040b750
jmp 0x40b68a
test bl, bl
je 0x40b68a
or dword [esi + 0x88], 4
jmp 0x40b68a
push 1
push 0
push 0
call sub.KERNEL32.dll_RaiseFailFastException
jmp 0x40b68a
mov ecx, esi
call fcn.0040b7e0
mov eax, dword [esi + 0xc]
pop edi
pop ebx
test eax, eax
je 0x40b6e3
mov ecx, dword [esi + 0x88]
test cl, 1
je 0x40b6a2
dec eax
mov dword [esi + 0xc], eax
cmp dword [esi + 0x80], 0
je 0x40b6cf
test cl, 2
je 0x40b6cf
mov ecx, esi
call fcn.0040ad30
mov ecx, dword [esi + 0x3c]
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x40]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov dword [esi + 0x84], eax
pop esi
ret
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
pop esi
ret