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

Disassembly:
sub esp, 0x34
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xa8]
sub eax, 1
push ebp
je 0x3ea1a0
sub eax, 3
je 0x3ea14a
sub eax, 4
jne 0x3ea14a
mov dword [esp + 0x14], 0x3e4ed0
mov dword [esp + 0xc], 0x3e5540
mov dword [esp + 0x10], 0x3e7f10
jmp 0x3ea1b8
mov eax, dword [edi + 0xd8]
mov ebp, dword [ebx + 0x94]
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
add edx, edx
sub edx, eax
mov eax, dword [edx*4 + 0x41c808]
and eax, 6
cmp eax, 4
mov eax, dword [ebx + 0x90]
mov dword [esp + 0x14], fcn.003e4d40
mov dword [esp + 0xc], fcn.003e52f0
mov dword [esp + 0x10], 0x3e7c80
jne 0x3ea194
mov dword [esp + 8], eax
jmp 0x3ea1c8
shl ebp, 0x18
shl eax, 0x18
mov dword [esp + 8], eax
jmp 0x3ea1c8
mov dword [esp + 0x14], 0x3e4b10
mov dword [esp + 0xc], 0x3e4fa0
mov dword [esp + 0x10], 0x3e7a10
mov ecx, dword [ebx + 0x90]
mov ebp, dword [ebx + 0x94]
mov dword [esp + 8], ecx
xor eax, eax
cmp dword [ebx + 0x28], eax
mov dword [esp + 0x1c], eax
jbe 0x3ea3ab
mov dword [esp + 0x18], eax
push esi
lea esp, [esp]
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x44]
add eax, edx
mov edx, dword [eax]
cmp ecx, edx
mov dword [esp + 0x2c], ecx
jg 0x3ea1fa
mov dword [esp + 0x2c], edx
mov ecx, dword [ebx + 0x48]
mov esi, dword [eax + 4]
cmp ecx, esi
mov edx, ecx
jg 0x3ea208
mov edx, esi
mov esi, dword [ebx + 0x4c]
mov ecx, dword [eax + 8]
cmp esi, ecx
mov dword [esp + 0x30], edx
jge 0x3ea218
mov ecx, esi
mov esi, dword [ebx + 0x50]
mov eax, dword [eax + 0xc]
cmp esi, eax
mov dword [esp + 0x34], ecx
jge 0x3ea228
mov eax, esi
cmp dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
jge 0x3ea391
cmp edx, eax
jge 0x3ea391
fild dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
fnstcw word [esp + 0xa]
movzx eax, word [esp + 0xa]
fmul dword [ecx + 0xdc]
or ah, 0xc
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp dword [esp + 0x2c]
fldcw word [esp + 0xa]
fild dword [esp + 0x30]
fnstcw word [esp + 0xa]
fmul dword [ecx + 0xe0]
movzx eax, word [esp + 0xa]
or ah, 0xc
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp dword [esp + 0x30]
fldcw word [esp + 0xa]
fild dword [esp + 0x34]
fnstcw word [esp + 0xa]
fmul dword [ecx + 0xdc]
movzx eax, word [esp + 0xa]
or ah, 0xc
fadd dword [0x41bf64]
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp dword [esp + 0x34]
fldcw word [esp + 0xa]
fild dword [esp + 0x38]
fnstcw word [esp + 0xa]
fmul dword [ecx + 0xe0]
movzx eax, word [esp + 0xa]
or ah, 0xc
cmp dword [edi + 0x80], 2
fadd dword [0x41bf64]
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp dword [esp + 0x38]
fldcw word [esp + 0xa]
jne 0x3ea31c
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x3c]
push ebp
push edx
mov edx, dword [esp + 0x40]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
push ecx
push edi
call dword [esp + 0x30]
add esp, 0x20
jmp 0x3ea391
test byte [ecx + 5], 4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x34]
push edx
push ebp
push eax
je 0x3ea364
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x74]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x44]
sub esi, ecx
push esi
push eax
push ecx
mov ecx, edx
xor edx, edx
xor esi, esi
mov eax, edi
call fcn.003af6c0
push eax
call dword [esp + 0x3c]
add esp, 0x28
jmp 0x3ea391
mov ecx, dword [edi + 0x64]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
sub esi, ecx
push esi
push eax
push ecx
mov ecx, edx
xor edx, edx
xor esi, esi
mov eax, edi
call fcn.003af6c0
push eax
call dword [esp + 0x3c]
add esp, 0x24
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x10
add eax, 1
cmp eax, dword [ebx + 0x28]
mov dword [esp + 0x20], eax
jb 0x3ea1e0
pop esi
pop ebp
add esp, 0x34
ret