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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2cac
call fcn.004672e0
inc dword [0x492408]
cmp dword [0x492408], 0x30
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
jl 0x40962e
push dword [ebp + 0x14]
push 0x46e670
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00408e14
dec dword [0x492408]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
and dword [esp + 0x14], 0
lea eax, [esp + 0x38]
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 0
call fcn.0040de91
push dword [ebp + 8]
lea esi, [esp + 0x2c]
call fcn.00402583
mov eax, esi
push eax
mov eax, 0x2000
lea ecx, [esp + 0x3c]
call fcn.0040dedd
mov bl, al
neg bl
mov ecx, esi
sbb bl, bl
call fcn.00402604
inc bl
je 0x4096a1
push dword [ebp + 0x14]
push 0x46e6f8
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00408e14
xor bl, bl
lea eax, [esp + 0x38]
call fcn.0040debd
dec dword [0x492408]
mov al, bl
jmp 0x409625
lea eax, [esp + 0x490]
push eax
mov esi, 0x104
push esi
call dword [0x46b328]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x74]
push eax
push esi
push dword [ebp + 8]
call dword [0x46b31c]
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x8ac]
push eax
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0045869e
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x284]
push eax
call fcn.004561f7
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x28c]
push eax
call fcn.004561c6
add esp, 0x10
lea eax, [esp + 0x280]
push eax
call dword [0x46b320]
cmp byte [esp + 0x12], 1
jne 0x4098b2
lea ebx, [esp + 0xcb8]
lea eax, [esp + 0x38]
call fcn.0040e424
test al, al
je 0x4098b2
inc dword [esp + 0x14]
mov esi, ebx
call fcn.00409433
mov eax, ebx
call fcn.00409468
test al, al
je 0x409890
mov edi, ebx
call fcn.00409405
mov eax, edi
push eax
xor bl, bl
call fcn.00455e51
mov esi, eax
pop ecx
cmp esi, 2
jle 0x4097b2
mov ax, word [esp + esi*2 + 0xcb4]
and ax, 0x7f
movzx eax, ax
push eax
call fcn.00457eb5
pop ecx
test eax, eax
je 0x4097b2
lea eax, [esp + esi*2 + 0xcb6]
cmp word [eax], 0x5f
jne 0x4097b2
xor ecx, ecx
mov word [eax], cx
inc bl
cmp byte [esp + 0x13], 1
mov esi, dword [esp + 0x18]
jne 0x40982a
cmp dword [esi + 0x10], 0
je 0x40987b
mov eax, dword [esi + 0xc]
push dword [eax]
call fcn.00455e51
mov edi, eax
pop ecx
lea eax, [esp + 0xcb8]
push eax
call fcn.00455e51
pop ecx
xor ecx, ecx
push 2
lea eax, [eax + edi + 1]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00456267
mov edi, eax
mov eax, dword [esi + 0xc]
pop ecx
push dword [eax]
push edi
call fcn.004561f7
lea eax, [esp + 0xcc0]
push eax
push edi
call fcn.004561c6
mov eax, dword [esi + 0xc]
push dword [eax]
call fcn.00455e6c
mov eax, dword [esi + 0xc]
add esp, 0x14
mov dword [eax], edi
jmp 0x40987b
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x78]
push eax
push esi
lea ecx, [esp + 0xcc8]
call fcn.004098dc
test eax, eax
je 0x409876
cmp eax, 1
jle 0x40987b
cmp eax, 3
jle 0x409860
cmp eax, 4
jne 0x40987b
mov byte [esp + 0x12], 0
jmp 0x40987b
push dword [ebp + 0xc]
lea eax, [esp + 0xcbc]
push eax
push dword [esp + 0x1c]
call fcn.004090b1
jmp 0x40987b
mov byte [esp + 0x11], 0
cmp bl, 1
sete byte [esp + 0x13]
cmp byte [esp + 0x11], 1
je 0x40972e
jmp 0x4098b2
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xcb8]
push eax
push 0x46e728
push dword [esp + 0x1c]
push dword [ebp + 0x10]
call fcn.00408e14
mov byte [esp + 0x11], 0
lea esi, [esp + 0x38]
call fcn.0040e748
and dword [esp + 0x64], 0
and dword [esp + 0x68], 0
lea eax, [esp + 0x490]
push eax
call dword [0x46b320]
mov bl, byte [esp + 0x11]
jmp 0x40968e