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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51723b
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
fldz
mov ecx, dword [ebp + 8]
fcom dword [ecx + 0x58]
fnstsw ax
fld dword [ebp + 0xc]
test ah, 5
jp 0x511445
fld dword [ecx + 0x58]
fstp dword [ebp + 0x10]
fld dword [ecx + 0x58]
fsub st(1)
fstp dword [ecx + 0x58]
fld dword [ecx + 0x5c]
fstp dword [ebp + 0x14]
mov edi, dword [ecx + 0x10]
fld dword [ebp + 0x10]
fld1
fldz
cmp edi, dword [ecx + 0x14]
je 0x5117bf
fstp st(4)
jmp 0x51146b
fstp st(1)
fld dword [ebp + 0x10]
fldz
fxch st(3)
fxch st(2)
cmp dword [0x5b30b0], 0
fld dword [edi + 0x60]
fld dword [ebp + 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fmul dword [edi + 0x64]
fstp dword [esp + 0x14]
je 0x5114e6
cmp byte [edi + 0xc], 0
jne 0x5114e6
mov eax, dword [edi + 8]
fstp st(0)
mov byte [edi + 0xc], 1
fstp st(2)
mov esi, dword [0x5b30b0]
fstp st(1)
mov ebx, dword [esi]
fstp st(0)
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
mov dword [esp + 0x24], eax
call fcn.0040f3e0
mov ecx, dword [esi + 4]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x5117d6
fldz
inc ecx
fld1
mov dword [esi + 4], ecx
fld dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
fld dword [ebp + 0xc]
mov dword [ecx], eax
fxch st(2)
fldz
mov cl, 1
fcom dword [edi + 0x44]
fnstsw ax
test ah, 5
jp 0x51157d
fld dword [esp + 0x10]
fcomp st(3)
fnstsw ax
test cl, ah
jne 0x511573
fstp st(0)
fld dword [edi + 0x44]
fld dword [esp + 0x14]
fld st(0)
faddp st(2)
fxch st(1)
fcomp st(3)
fnstsw ax
test ah, 5
jp 0x51153a
fstp st(0)
fstp st(3)
fstp st(0)
fdiv dword [edi + 0x44]
fadd dword [edi + 0x40]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x511535
fstp st(0)
fld st(0)
fstp dword [edi + 0x40]
jmp 0x5115b8
fstp st(3)
xor cl, cl
fxch st(1)
fsubrp st(2)
fld dword [edi + 0x44]
fdivp st(2)
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 0x41
jp 0x51155b
fstp st(0)
fxch st(1)
fstp dword [edi + 0x40]
jmp 0x5115b8
fstp st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x51156c
fstp st(1)
fld st(0)
fxch st(1)
fxch st(1)
fstp dword [edi + 0x40]
jmp 0x5115b8
fstp st(4)
fstp st(1)
fstp st(1)
fxch st(1)
jmp 0x5115b5
fstp st(0)
fstp st(3)
fstp st(1)
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x5115a7
fld dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 1
jne 0x5115a9
mov dword [esp + 0x14], 1
jmp 0x5115b1
fstp st(0)
mov dword [esp + 0x14], 0
fild dword [esp + 0x14]
fstp dword [edi + 0x40]
fsub dword [edi + 0x40]
lea esi, [edi + 0x48]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(0), st(0)
fstp dword [esp + 0x14]
test cl, cl
jne 0x5115d3
lea esi, [edi + 0x54]
call fcn.0048fe70
fstp dword [esp + 0x18]
call fcn.0048fdd0
fstp dword [esp + 0x10]
fld dword [esp + 0x18]
lea ecx, [esp + 0x14]
fstp dword [esp + 0x34]
lea eax, [esp + 0x40]
fld dword [esp + 0x10]
mov edx, esi
fstp dword [esp + 0x38]
fldz
fstp dword [esp + 0x3c]
call fcn.004037a0
mov esi, eax
lea ecx, [edi + 0x20]
lea eax, [esp + 0x4c]
lea edx, [esp + 0x34]
call fcn.0040c5c0
mov ecx, eax
lea edx, [edi + 0x14]
lea eax, [esp + 0x58]
call fcn.00403dd0
mov edx, eax
mov ecx, esi
lea eax, [esp + 0x64]
call fcn.00403dd0
mov edx, dword [eax]
mov ecx, dword [edi + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 8]
mov dword [ecx + 0x10], eax
test byte [edi + 0x78], 1
je 0x511683
fld dword [esp + 0x14]
lea edx, [edi + 0x68]
fld1
lea ecx, [esp + 0x1c]
fsubrp st(1)
lea eax, [esp + 0x70]
fstp dword [esp + 0x1c]
call fcn.004037a0
mov edx, dword [eax]
mov ecx, dword [edi + 8]
mov dword [ecx + 0x20], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x24], edx
mov eax, dword [eax + 8]
mov dword [ecx + 0x28], eax
jmp 0x511698
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [eax + 0x20], ecx
mov edx, dword [edi + 0x6c]
mov dword [eax + 0x24], edx
mov ecx, dword [edi + 0x70]
mov dword [eax + 0x28], ecx
cmp byte [edi + 0x7c], 0
je 0x5116c6
mov esi, dword [edi + 8]
call fcn.0048fe70
fdiv qword [0x554df8]
fmul dword [esi + 0x20]
fstp dword [esi + 0x20]
mov esi, dword [edi + 8]
call fcn.0048fdd0
fdiv qword [0x554d68]
fmul dword [esi + 0x24]
fstp dword [esi + 0x24]
test byte [edi + 0x78], 2
je 0x511703
movzx edx, byte [edi + 0x77]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], edx
or eax, 0xc00
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fmul dword [edi + 0x40]
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
mov al, byte [esp + 0x1c]
mov byte [ecx + 0x5f], al
fldcw word [esp + 0x10]
fld dword [edi + 0x34]
movzx edx, word [edi + 0x30]
fld dword [ebp + 0xc]
mov dword [esp + 0x10], edx
fld qword [0x555050]
fmul st(1)
fmulp st(2)
fild dword [esp + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
faddp st(2)
mov dword [esp + 0x20], eax
fxch st(1)
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov ax, word [esp + 0x20]
mov word [edi + 0x30], ax
movzx eax, ax
shr eax, 4
fldcw word [esp + 0x10]
fld dword [eax*4 + 0x547b98]
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x51176f
fmul dword [edi + 0x38]
jmp 0x511772
fmul dword [edi + 0x3c]
mov eax, dword [edi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov ecx, dword [ebp + 8]
fld1
sub edi, 0xffffff80
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld st(0)
fmul dword [eax + 0x20]
fstp dword [eax + 0x20]
fld dword [eax + 0x24]
fmul st(1)
fstp dword [eax + 0x24]
fmul dword [eax + 0x28]
fstp dword [eax + 0x28]
cmp edi, dword [ecx + 0x14]
jne 0x511460
fldz
fld dword [ebp + 0x10]
fxch st(3)
fxch st(4)
fxch st(3)
fxch st(2)
fxch st(1)
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
cmp edx, ecx
je 0x511968
mov edi, 0xfffffff0
sub edi, edx
jmp 0x5117e5
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
fldz
fxch st(4)
fld dword [edx + 8]
fld dword [ebp + 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fmul dword [edx + 0xc]
fstp dword [esp + 0x1c]
fxch st(4)
fcom dword [edx + 4]
fnstsw ax
test ah, 5
jp 0x51186e
fld dword [esp + 0x20]
fcomp st(3)
fnstsw ax
test ah, 1
jne 0x511872
fstp st(0)
fld dword [edx + 4]
fld dword [esp + 0x1c]
fld st(0)
faddp st(2)
fxch st(1)
fcomp st(3)
fnstsw ax
test ah, 5
jp 0x511847
fstp st(0)
fld st(2)
fdiv dword [edx + 4]
fadd dword [edx]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x51186a
fstp st(0)
fld st(0)
fstp dword [edx]
jmp 0x511874
fsubr st(2)
fdiv dword [edx + 4]
fcom st(4)
fnstsw ax
test ah, 0x41
jp 0x51185d
fstp st(0)
fld st(3)
fstp dword [edx]
jmp 0x511874
fcom st(1)
fnstsw ax
test ah, 1
jne 0x51186a
fstp st(0)
fld st(0)
fstp dword [edx]
jmp 0x511874
fstp st(0)
fld1
fstp dword [edx]
cmp dword [0x5b30b0], 0
je 0x5118f3
lea ecx, [edx + 0x1c]
mov esi, 3
fld dword [ecx - 0xc]
fsub st(1)
fmul dword [edx]
fadd st(1)
fcom st(4)
fnstsw ax
test ah, 0x41
jp 0x51189d
fstp st(0)
fld st(3)
jmp 0x5118aa
fcom st(1)
fnstsw ax
test ah, 1
jne 0x5118aa
fstp st(0)
fld st(0)
mov ebx, dword [0x5b30b0]
lea eax, [edi + ecx + 0xc]
fmul dword [eax + ebx]
fstp dword [eax + ebx]
fld dword [ecx]
fsub st(1)
fmul dword [edx]
fadd st(1)
fcom st(4)
fnstsw ax
test ah, 0x41
jp 0x5118d1
fstp st(0)
fld st(3)
jmp 0x5118de
fcom st(1)
fnstsw ax
test ah, 1
jne 0x5118de
fstp st(0)
fld st(0)
mov ebx, dword [0x5b30b0]
lea eax, [edi + ecx]
fmul dword [eax + ebx]
add ecx, 4
dec esi
fstp dword [eax + ebx]
jne 0x511885
mov ecx, dword [ebp + 8]
add edx, 0x28
sub edi, 0x28
cmp edx, dword [ecx + 0x24]
jne 0x5117e1
fstp st(0)
fstp st(2)
fstp st(0)
fldz
fxch st(1)
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
cmp ecx, dword [edi + 4]
je 0x511940
fld qword [0x554db8]
mov edx, dword [ecx + 4]
test edx, edx
je 0x511936
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x511936
fxch st(2)
fst dword [edx + 0x20]
fxch st(2)
add ecx, 0x20
cmp ecx, dword [edi + 4]
jne 0x51191f
fstp st(0)
mov esi, dword [edi + 0x30]
mov dword [esp + 0x10], esi
cmp esi, dword [edi + 0x34]
jne 0x511974
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
fstp st(1)
fstp st(0)
fstp st(1)
jmp 0x51190f
fldz
fxch st(1)
fld dword [esi + 0x20]
fld dword [ebp + 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fmul dword [esi + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x511bc3
fxch st(1)
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jp 0x511acd
cmp dword [esi + 0x28], 0
fld dword [0x554d98]
fstp dword [esi + 0x20]
jne 0x511a4a
fstp st(0)
mov dword [esp + 0x24], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::Global.0
mov dword [esp + 0x28], 0x494d00
sub esp, 0x24
mov dword [esp + 0xac], 0
mov eax, esp
mov cl, 1
mov dword [esp + 0x44], esp
mov dword [esp + 0x44], eax
mov byte [eax + 0x20], cl
mov dword [eax], 0
mov byte [esp + 0xac], cl
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x4c]
call eax
mov byte [esp + 0xac], 0
fld1
mov edi, dword [0x5b3200]
sub esp, 8
fstp dword [esp + 4]
mov ebx, esi
fld dword [0x555048]
fstp dword [esp]
call fcn.00494e50
fld dword [ebp + 0x10]
mov dword [esp + 0x88], 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esp + 0x24], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::BaseDelegate.0
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x511bc5
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x34]
lea eax, [esi + 0x2c]
cmp eax, ebx
je 0x511a84
lea edx, [eax - 0x2c]
mov esi, eax
mov edi, edx
add eax, 0x2c
mov ecx, 0xb
add edx, 0x2c
rep movsd dword es:[edi], dword [esi]
cmp eax, ebx
jne 0x511a6b
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x34]
lea ebx, [eax - 0x2c]
mov dword [esp + 0x20], eax
cmp ebx, eax
je 0x511ac4
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x511aba
mov edx, dword [0x5b3200]
fstp st(0)
push edx
mov ecx, ebx
call fcn.00495200
fld dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x28], 0
add ebx, 0x2c
cmp ebx, eax
jne 0x511a95
mov ecx, dword [ebp + 8]
add dword [ecx + 0x34], 0xffffffd4
jmp 0x511bc5
fstp st(0)
mov dword [esp + 0x2c], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::Global.0
mov dword [esp + 0x30], 0x494d00
sub esp, 0x24
mov ebx, 2
mov dword [esp + 0xac], ebx
mov eax, esp
mov dword [esp + 0x44], esp
mov dword [esp + 0x44], eax
mov byte [eax + 0x20], 1
mov dword [eax], 0
mov byte [esp + 0xac], 3
push eax
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x54]
call edx
mov byte [esp + 0xac], bl
fld1
mov edi, dword [0x5b3200]
sub esp, 8
fst dword [esp + 4]
mov ebx, esi
fstp dword [esp]
call fcn.00494e50
mov eax, dword [ebp + 8]
mov dword [esp + 0x88], 0xffffffff
mov edx, dword [eax + 0x34]
lea eax, [esi + 0x2c]
mov dword [esp + 0x2c], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::BaseDelegate.0
cmp eax, edx
je 0x511b79
lea ebx, [eax - 0x2c]
jmp 0x511b60
mov esi, eax
mov edi, ebx
add eax, 0x2c
mov ecx, 0xb
add ebx, 0x2c
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
jne 0x511b60
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x34]
lea ebx, [eax - 0x2c]
mov dword [esp + 0x20], eax
cmp ebx, eax
je 0x511bba
lea ebx, [ebx]
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x511bb0
mov ecx, dword [0x5b3200]
push ecx
mov ecx, ebx
call fcn.00495200
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x28], 0
add ebx, 0x2c
cmp ebx, eax
jne 0x511b90
mov ecx, dword [ebp + 8]
add dword [ecx + 0x34], 0xffffffd4
fld dword [ebp + 0x10]
jmp 0x511bc5
fstp st(1)
mov edx, dword [ebp + 8]
cmp esi, dword [edx + 0x34]
jne 0x511970
jmp 0x51194e