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

Disassembly:
sub esp, 0x2ec
push ebx
push ebp
mov ebp, dword [esp + 0x2f8]
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp]
mov eax, dword [eax]
mov ebx, dword [ebp + 4]
mov byte [eax + 0x3c], 1
mov byte [eax + 0x3d], 0
cmp dword [ebp + 0x28], 0
push esi
mov dword [esp + 0x24], ecx
lea esi, [ecx + 0x58]
push edi
mov ecx, 0x22
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xb4]
mov esi, dword [ebp + 0x40]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x38]
mov edx, dword [ecx + 0xc]
mov edi, dword [ecx + 0x64]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x44]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], 0
jbe 0x3e1879
mov eax, dword [esp + 0x24]
add ecx, edx
add esi, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x1c], 0
jmp 0x3e1670
mov ecx, dword [esp + 0x5c]
lea ebx, [ebx]
mov eax, dword [ebp + 0x2c]
fnstcw word [esp + 0x10]
add eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov dword [esp + 0x4c], esi
fild dword [esp + 0x4c]
mov esi, dword [eax + 4]
mov dword [esp + 0x50], esi
mov esi, dword [eax + 8]
fmul dword [ebx + 0xdc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], eax
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x34]
fldcw word [esp + 0x10]
fild dword [esp + 0x54]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xdc]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x40]
fldcw word [esp + 0x10]
fild dword [esp + 0x50]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xe0]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x60]
fldcw word [esp + 0x10]
fild dword [esp + 0x58]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xe0]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
mov eax, dword [esp + 0x34]
cmp eax, edx
fistp dword [esp + 0x20]
fldcw word [esp + 0x10]
mov dword [esp + 0x10], eax
jg 0x3e173a
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x60]
cmp esi, edx
jg 0x3e1746
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x3e1756
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jl 0x3e1764
mov eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x10]
sub eax, esi
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x3e185c
test eax, eax
jle 0x3e185c
mov eax, dword [ebp + 0x50]
sub eax, dword [esp + 0x24]
push 0
add eax, esi
imul eax, edi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x4c]
sub eax, edx
add eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add edx, dword [esp + 0x3c]
push 0
add eax, edx
mov edx, dword [esp + 0x30]
mov edi, dword [edx + 0x110]
imul edi, dword [ebx + 0xe4]
mov edx, dword [esp + 0x18]
sar edi, 3
add edx, edi
mov edi, dword [esp + 0x30]
mov edi, dword [edi + 0x114]
imul edi, dword [ebx + 0xe8]
push 0
mov dword [esp + 0x164], eax
mov eax, 8
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
imul ecx, dword [esp + 0x44]
sar edi, 3
add esi, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1dc], edi
mov edi, dword [esp + 0x50]
push esi
push edx
xor eax, eax
cmp edi, ecx
sete al
push 0
lea edx, [esp + 0x84]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x110]
mov dword [esp + 0x18c], edi
push eax
push 1
push ecx
push edx
mov dword [esp + 0x328], ebx
mov dword [esp + 0x32c], 0
call fcn.003e0160
mov edx, dword [esp + 0x78]
add esp, 0x34
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], 0x10
add eax, 1
cmp eax, dword [ebp + 0x28]
mov dword [esp + 0x2c], eax
jb 0x3e1666
mov eax, dword [esp + 0x18]
mov ebp, dword [ebp]
cmp byte [ebp + 0x18], 0
jne 0x3e18a6
mov esi, dword [ebp]
cmp byte [esi + 0x3d], 0
jne 0x3e18a6
mov ecx, esi
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0x40]
mov edi, dword [edx + 0xc]
lea ecx, [edi + ecx*4]
cmp dword [edx], ecx
jne 0x3e18a6
cmp dword [esi + 0x11c28], 0
jbe 0x3e18b2
push 0
push ebp
call fcn.003c0490
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x3d], 1
pop edi
pop esi
pop ebp
mov byte [eax + 0x3c], 0
pop ebx
jne 0x3e18d6
mov edx, dword [eax + 0x11cc4]
push 0
push edx
call fcn.003c0490
mov eax, dword [esp + 8]
mov byte [eax + 0x3d], 0
add esp, 0x2ec
ret