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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [esp + 0x34], 0
lea ebx, [ebx]
mov eax, dword [ebx + 0x7a8]
cmp eax, dword [ebx + 0x7ac]
mov dword [esp + 0x30], eax
jg 0x3b8557
lea ecx, [ebx + eax*4 + 0x8b4]
mov dword [esp + 0x28], ecx
jmp 0x3b8140
mov ecx, dword [esp + 0x28]
jmp 0x3b8140
mov eax, dword [ebx + 0x1e0]
test eax, eax
je 0x3b815c
test byte [ebx + 5], 1
jne 0x3b815c
mov dword [ebx + 0x834], 4
xor eax, eax
mov edx, dword [ecx]
mov ecx, dword [ecx - 8]
lea eax, [eax + eax*4]
shl eax, 6
lea edx, [eax + edx + 0x30]
push 0
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + 0x75c]
push edx
mov dword [esp + 0x40], eax
lea eax, [eax + ecx + 0x30]
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.003b3780
mov edx, dword [ebx + 0x75c]
push 0
push edx
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, 0x19
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
push ebx
push ecx
lea edx, [esp + 0x1a4]
push edx
call fcn.003b3780
add esp, 0x30
test dword [ebx + 4], 0x104001
mov ecx, 0x19
mov esi, eax
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
je 0x3b820f
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x3b81f1
mov dword [esp + 0x1c], eax
jmp 0x3b81fb
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x58]
test eax, eax
mov edi, dword [esp + 0x18]
jne 0x3b823a
mov edx, dword [edi]
mov dword [esp + 0x24], edx
jmp 0x3b823e
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xa8]
xor edx, edx
xor esi, esi
call fcn.003af6c0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
xor edx, edx
call fcn.003af6c0
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
test ah, 4
je 0x3b82a2
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
shrd eax, ecx, 0xb
push eax
mov eax, 0x800
cdq
idiv dword [edi + 0xa8]
mov edx, dword [esp + 0x24]
shr ecx, 0xb
lea ecx, [esp + 0xac]
push eax
mov eax, dword [edx + 0xa8]
push eax
mov eax, dword [esp + 0x28]
push 0
push 0
push 0x800
push 0x800
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x60]
push edx
push eax
push ecx
xor eax, eax
xor edx, edx
call fcn.003b0080
add esp, 0x2c
jmp 0x3b84f0
test eax, 0x104001
je 0x3b8383
mov esi, dword [ebx + 0x8ac]
mov ecx, dword [esi + 0x94]
mov eax, ecx
cdq
idiv dword [esi + 0xd8]
mov dword [esp + 0xc], eax
mov eax, ecx
cdq
push edx
mov edx, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push edx
push eax
call fcn.003f4610
cmp dword [ebx + 0x1e0], 0
mov dword [esp + 0x10], eax
je 0x3b833a
mov eax, dword [esi + 0x1d4]
mov ecx, dword [esi + 0x18c]
cdq
push edx
mov edx, dword [esi + 0x188]
push eax
push ecx
push edx
call fcn.003f4610
xor ecx, ecx
cmp ecx, edx
jb 0x3b8313
ja 0x3b830f
cmp dword [esp + 0x10], eax
jb 0x3b8313
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
push ecx
push edx
push 0
push 0
push eax
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call fcn.003b7f90
mov edi, dword [esp + 0x38]
add esp, 0x20
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0xa8]
push edx
mov edx, dword [eax + 0x64]
mov eax, dword [edi + 0x64]
push ecx
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x60]
push edx
push eax
push ecx
xor eax, eax
xor edx, edx
call fcn.003b0080
add esp, 0x2c
jmp 0x3b84f0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x3b84f0
mov esi, dword [ebp + 0x10]
add esi, 4
mov dword [esp + 0x2c], eax
jmp 0x3b83a0
test byte [ebx + 5], 1
je 0x3b8457
mov edx, dword [esi]
fld dword [ebx + 0xdc]
fld dword [ebx + 0xe0]
mov eax, dword [esi - 4]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
mov dword [esp + 0x14], eax
fmul st(1)
call fcn.003f4770
fild dword [esp + 0x14]
mov dword [esp + 0x3c], eax
fmul st(2)
call fcn.003f4770
fnstcw word [esp + 0x10]
mov edx, dword [esi + 8]
sub edx, dword [esp + 0xc]
mov ecx, eax
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0xc], edx
mov edx, dword [esi + 4]
sub edx, dword [esp + 0x14]
fild dword [esp + 0xc]
push 0
push 0
push 0xffffffffffffffff
fmul st(1)
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
push eax
fstp st(0)
fldcw word [esp + 0x20]
fild dword [esp + 0x24]
fnstcw word [esp + 0x20]
fmul st(1)
movzx eax, word [esp + 0x20]
or ah, 0xc
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push eax
fstp st(0)
fldcw word [esp + 0x28]
push ecx
push eax
push ecx
jmp 0x3b84a7
cmp dword [ebx + 0x1e0], 0
je 0x3b848c
mov eax, dword [esi]
mov edi, dword [esi + 8]
mov ecx, dword [esi - 4]
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
sub edi, eax
push edi
mov edi, dword [esi + 4]
sub edi, ecx
push edi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push edx
push ebx
push eax
call fcn.003b7f90
mov edi, dword [esp + 0x38]
add esp, 0x20
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esi - 4]
push 0
push 0
push 0xffffffffffffffff
sub edx, ecx
push edx
mov edx, dword [esi + 4]
sub edx, eax
push edx
push ecx
push eax
push ecx
push eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0xa8]
mov edx, dword [edi + 0xa8]
push ecx
mov ecx, dword [eax + 0x64]
push edx
mov edx, dword [edi + 0x64]
push ecx
push edx
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x5c]
push edi
push eax
push ecx
call fcn.003b05f0
add esp, 0x4c
add esi, 0x10
sub dword [esp + 0x2c], 1
jne 0x3b83a0
mov eax, dword [ebx + 0x75c]
mov edi, dword [esp + 0x28]
mov ecx, dword [edi - 8]
mov esi, dword [esp + 0x38]
lea edx, [esp + 0xa8]
push edx
push eax
mov eax, dword [ebp + 8]
lea edx, [esi + ecx + 0x30]
push edx
push ebx
push eax
call fcn.003b3bf0
mov edx, dword [ebx + 0x75c]
mov eax, dword [edi]
lea ecx, [esp + 0x54]
push ecx
push edx
mov edx, dword [ebp + 8]
lea ecx, [esi + eax + 0x30]
push ecx
push ebx
push edx
call fcn.003b3bf0
mov eax, dword [esp + 0x58]
add eax, 1
add edi, 4
add esp, 0x28
cmp eax, dword [ebx + 0x7ac]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
jle 0x3b8133
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [ebx + 0x6ec]
mov dword [esp + 0x34], eax
jbe 0x3b8110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret