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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519406
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], 0
fld dword [ebx + 0x7c]
cmp dword [0x5b2b40], 0
fstp dword [esp + 0x18]
jne 0x503db6
mov dword [ebx + 0x88], 0x40
mov ecx, dword [ebx + 0x98]
test ecx, ecx
je 0x503deb
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
cmp dword [ebx + 0x9c], eax
je 0x503deb
cmp dword [0x5bca8c], 0
jne 0x503deb
mov ecx, dword [ebx + 0x98]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov dword [ebx + 0x9c], eax
mov eax, dword [0x5bca8c]
fldz
inc eax
cdq
mov ecx, 0xa
idiv ecx
mov ecx, dword [ebx + 0xbc]
mov dword [0x5bca8c], edx
mov edx, dword [ebx + 0x88]
mov dword [ebx + 0x34], edx
cmp ecx, 7
ja case.default.0x503e19
jmp dword [ecx*4 + 0x504718]
fld dword [ebx + 0x7c]
fld1
fsubrp st(1)
fmul qword [0x5554e0]
fadd dword [ebx + 0x7c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fst dword [ebx + 0x7c]
fcomp qword [0x554bf8]
fnstsw ax
test ah, 0x41
jne case.default.0x503e19
call fcn.004d2690
fstp dword [ebx + 0x90]
cmp dword [ebx + 0x8c], 0
fld1
mov edi, 1
fstp dword [ebx + 0x7c]
mov dword [ebx + 0xbc], edi
jne 0x5044c8
call fcn.0048fe70
fmul qword [0x554b90]
push 0x164
fsub qword [0x555008]
fstp dword [esp + 0x20]
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
xor eax, eax
mov dword [esp + 0x98], eax
cmp esi, eax
je 0x503fbb
mov dword [esp + 0x4c], vtable.Mortar::Delegate0_void_::Global.0
mov dword [esp + 0x50], 0x49ded0
sub esp, 0x24
mov byte [esp + 0xbc], 1
mov eax, esp
mov dword [esp + 0x4c], esp
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x3c], edi
call fcn.0040e4d0
mov dword [esp + 0xbc], 2
fld dword [0x57c388]
sub esp, 0xc
mov eax, esp
fstp dword [eax]
mov dword [esp + 0x5c], esp
fld dword [0x57c38c]
fstp dword [eax + 4]
fld dword [0x57c390]
fstp dword [eax + 8]
mov ecx, dword [0x5b2ad8]
push ecx
mov edx, 0x5026f0
mov ecx, ebx
lea eax, [esp + 0x90]
call fcn.00404280
sub esp, 0x24
mov byte [esp + 0xf0], 4
mov edx, esp
mov dword [esp + 0x8c], esp
push edx
mov ecx, eax
mov dword [esp + 0x70], 3
call fcn.0040e4d0
mov dword [esp + 0xf0], 5
call fcn.0048fdd0
fmul qword [0x554b90]
sub esp, 0xc
mov eax, esp
fsubr qword [0x555008]
mov dword [esp + 0xa0], esp
fstp dword [esp + 0x84]
fld dword [esp + 0x80]
fstp dword [eax]
fld dword [esp + 0x84]
fstp dword [eax + 4]
fldz
fstp dword [eax + 8]
push ecx
mov eax, 0x5b31f4
mov edi, esp
mov byte [esp + 0x100], 6
mov dword [esp + 0x88], esp
call fcn.0044c320
mov ecx, esi
mov byte [esp + 0x100], 7
call fcn.004a05c0
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x8c], eax
mov edx, vtable.Mortar::Delegate0_void_::BaseDelegate.0
test cl, 2
je 0x503fd6
and ecx, 0xfffffffd
mov dword [esp + 0x5c], edx
or esi, 0xffffffff
mov dword [esp + 0x98], esi
test cl, 1
je 0x503fe9
mov dword [esp + 0x4c], edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x8c]
mov byte [ecx + 0x140], 1
mov edx, dword [ebx + 0x8c]
mov edi, dword [0x5b30b0]
push edx
call fcn.0050e5b0
mov ecx, ebx
lea eax, [esp + 0x68]
call fcn.00404290
mov dword [esp + 0x98], 0xa
mov edx, dword [ebx + 0x8c]
mov edi, dword [eax]
add edx, 0x38
mov ecx, eax
mov eax, dword [edi + 4]
push edx
call eax
mov dword [esp + 0x98], esi
mov edx, dword [ebx + 0x8c]
mov ecx, dword [0x5b31e0]
mov dword [esp + 0x68], vtable.Mortar::Delegate1_void__class_HUDControl__::BaseDelegate.0
test edx, edx
je 0x504060
call fcn.0049ab50
jmp 0x504069
fld dword [0x554bb4]
fstp dword [ecx + 0x7c]
mov eax, dword [ebx + 0x8c]
fld dword [eax + 0x12c]
fld qword [0x554f08]
fmul st(1), st(0)
fxch st(1)
fstp dword [eax + 0x12c]
fld dword [eax + 0x130]
fmul st(1)
fstp dword [eax + 0x130]
fld dword [eax + 0x134]
fmul st(1)
fstp dword [eax + 0x134]
mov edx, dword [ebx + 0x8c]
mov eax, dword [edx + 0x13c]
fld dword [eax + 0x28]
fmul st(1)
fstp dword [eax + 0x28]
fld dword [eax + 0x2c]
fmul st(1)
fstp dword [eax + 0x2c]
fmul dword [eax + 0x30]
fstp dword [eax + 0x30]
jmp 0x5044c8
fld dword [ebp + 8]
fld st(0)
fchs
fstp dword [esp + 0x20]
fxch st(1)
fcomp dword [ebx + 0x90]
fnstsw ax
test ah, 5
jp 0x5040f0
fsubr dword [ebx + 0x90]
fstp dword [ebx + 0x90]
jmp 0x504108
mov eax, dword [ebx + 0x98]
fstp st(0)
cmp byte [eax + 0xcd], 0
je 0x504108
mov byte [0x5b2aa2], 0
fld dword [esp + 0x20]
fmul qword [0x555340]
fiadd dword [ebx + 0xb8]
fldz
fcom st(1)
fnstsw ax
test ah, 1
jne 0x504135
fstp st(1)
call fcn.00513620
mov dword [ebx + 0xb8], eax
jmp 0x5044c8
fstp st(0)
fld qword [0x5550f0]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x504158
fstp st(1)
call fcn.00513620
mov dword [ebx + 0xb8], eax
jmp 0x5044c8
fstp st(0)
call fcn.00513620
mov dword [ebx + 0xb8], eax
jmp 0x5044c8
fstp st(0)
fld dword [ebx + 0x7c]
fmul qword [0x555020]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fst dword [ebx + 0x7c]
fcomp dword [0x554cb8]
fnstsw ax
test ah, 5
jp 0x5044c8
cmp ecx, 2
jne 0x5044c8
cmp dword [ebx + 0x94], 0
je 0x5044c8
mov ecx, dword [0x5b31d8]
mov dword [ecx + 0x13c], 8
mov edx, dword [ebx + 0x94]
mov byte [edx + 0x33], 1
mov byte [ebx + 0x33], 1
jmp 0x5044c8
fld dword [ebx + 0x7c]
fmul qword [0x554cc0]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fst dword [ebx + 0x7c]
fcomp dword [0x554e18]
fnstsw ax
test ah, 5
jp 0x50441a
mov edi, 4
fstp dword [ebx + 0x7c]
push 0x164
mov dword [ebx + 0xbc], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x98], 0xb
test esi, esi
je 0x504348
mov dword [esp + 0x54], vtable.Mortar::Delegate0_void_::Global.0
mov dword [esp + 0x58], 0x49ded0
sub esp, 0x24
mov byte [esp + 0xbc], 0xc
mov eax, esp
mov dword [esp + 0x58], esp
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x3c], edi
call fcn.0040e4d0
mov dword [esp + 0xbc], 0xd
fld dword [0x57c388]
sub esp, 0xc
mov eax, esp
fstp dword [eax]
mov dword [esp + 0x5c], esp
fld dword [0x57c38c]
fstp dword [eax + 4]
fld dword [0x57c390]
fstp dword [eax + 8]
mov ecx, dword [0x5b2ad8]
push ecx
mov edx, 0x502620
mov ecx, ebx
lea eax, [esp + 0xa8]
call fcn.00404280
sub esp, 0x24
mov byte [esp + 0xf0], 0xf
mov edx, esp
mov dword [esp + 0x80], esp
push edx
mov ecx, eax
mov dword [esp + 0x70], 0xc
call fcn.0040e4d0
mov dword [esp + 0xf0], 0x10
call fcn.0048fdd0
fmul qword [0x554b90]
fsubr qword [0x555008]
fstp dword [esp + 0x74]
call fcn.0048fe70
fmul qword [0x554b90]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x88], esp
fsub qword [0x555008]
fstp dword [esp + 0x84]
fld dword [esp + 0x84]
fstp dword [eax]
fld dword [esp + 0x80]
fstp dword [eax + 4]
fldz
fstp dword [eax + 8]
push ecx
mov eax, 0x5b31f4
mov edi, esp
mov byte [esp + 0x100], 0x11
mov dword [esp + 0x88], esp
call fcn.0044c320
mov ecx, esi
mov byte [esp + 0x100], 0x12
call fcn.004a05c0
jmp 0x50434a
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x8c], eax
mov edx, vtable.Mortar::Delegate0_void_::BaseDelegate.0
test cl, 8
je 0x504365
and ecx, 0xfffffff7
mov dword [esp + 0x74], edx
or esi, 0xffffffff
mov dword [esp + 0x98], esi
test cl, 4
je 0x504378
mov dword [esp + 0x54], edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, ebx
lea eax, [esp + 0x80]
call fcn.00404290
mov dword [esp + 0x98], 0x15
mov edx, dword [ebx + 0x8c]
mov edi, dword [eax]
add edx, 0x38
push edx
mov edx, dword [edi + 4]
mov ecx, eax
call edx
mov dword [esp + 0x98], esi
mov eax, dword [ebx + 0x8c]
mov edi, dword [0x5b30b0]
push eax
mov dword [esp + 0x84], vtable.Mortar::Delegate1_void__class_HUDControl__::BaseDelegate.0
call fcn.0050e5b0
mov eax, dword [ebx + 0x8c]
fld dword [eax + 0x12c]
fld qword [0x554f08]
fmul st(1), st(0)
fxch st(1)
fstp dword [eax + 0x12c]
fld dword [eax + 0x130]
fmul st(1)
fstp dword [eax + 0x130]
fld dword [eax + 0x134]
fmul st(1)
fstp dword [eax + 0x134]
mov ecx, dword [ebx + 0x8c]
mov eax, dword [ecx + 0x13c]
jmp 0x5040ad
mov eax, dword [ebx + 0x8c]
fstp st(0)
test eax, eax
je 0x5044c8
mov eax, dword [eax + 0x13c]
test eax, eax
je 0x5044c8
fld dword [0x554cf8]
push ecx
mov esi, 0x576b50
fstp dword [esp]
mov byte [eax + 0x80], 1
call fcn.004033c0
fchs
fstp dword [esp + 0x20]
push ecx
fld dword [0x554cf8]
fstp dword [esp]
call fcn.004033c0
fadd qword [0x554cf0]
mov edx, dword [ebx + 0x8c]
mov eax, dword [edx + 0x13c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x20]
mov dword [eax + 0x1c], ecx
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
fldz
mov dword [eax + 0x20], edx
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fld dword [0x554bb4]
mov dword [eax + 0x24], ecx
mov edx, dword [0x5b31e0]
fstp dword [edx + 0x7c]
mov dword [ebx + 0x8c], 0
jmp 0x5044c8
mov dword [ebx + 0x88], 0x80
fstp st(0)
cmp dword [ebx + 0x98], 0
je 0x50455c
call fcn.0048fe70
fmul qword [0x554e48]
fmul qword [0x554b90]
fstp qword [esp + 0x3c]
call fcn.0048fe70
fmul qword [0x554b90]
fsubr qword [esp + 0x3c]
fstp qword [esp + 0x3c]
call fcn.0048fe70
fmul qword [0x554e48]
mov eax, dword [ebx + 0x98]
fld dword [ebx + 0x7c]
fld1
fsubrp st(1)
fmulp st(1)
fmul qword [0x554e40]
fsubr qword [esp + 0x3c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fld dword [0x5554d8]
mov dword [eax + 8], ecx
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
fldz
mov dword [eax + 0xc], edx
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0x98]
fld dword [edx + 0xdc]
fstp dword [0x57691c]
fld dword [ebx + 0x7c]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x5046fe
mov esi, dword [0x5b2b44]
call fcn.0048fe70
fstp qword [esp + 0x34]
fld dword [esp + 0x18]
fld1
fsubrp st(1)
fstp qword [esp + 0x3c]
call fcn.0048fe70
fmul qword [0x554e48]
fsubr qword [esp + 0x34]
fld dword [ebx + 0x7c]
fld1
fsubrp st(1)
fsub qword [esp + 0x3c]
fmulp st(1)
fmul qword [0x554e40]
fstp dword [esp + 0x20]
call fcn.0048fe70
fmul qword [0x554e48]
xor edi, edi
fld dword [ebx + 0x7c]
fld1
fsubrp st(1)
fsub qword [esp + 0x3c]
fmulp st(1)
fmul qword [0x554e40]
fstp dword [esp + 0x1c]
cmp dword [0x5b2b48], edi
jle 0x5046fe
add esi, 0x38
cmp byte [esi + 0x3d], 0
je 0x5046ee
cmp dword [esi + 0x38], 0
jl 0x5046ee
fld dword [esi]
fstp qword [esp + 0x2c]
call fcn.0048fe70
fmul qword [0x554b90]
fstp qword [esp + 0x34]
call fcn.0048fe70
fstp qword [esp + 0x3c]
call fcn.0048fe70
fmul qword [0x554e48]
fsubr qword [esp + 0x3c]
fsubr qword [esp + 0x34]
fcomp qword [esp + 0x2c]
fnstsw ax
fld dword [esi]
test ah, 5
jp 0x5046e8
fadd dword [esp + 0x20]
jmp 0x5046ec
mov eax, dword [ebx + 0x8c]
fstp st(0)
test eax, eax
je 0x5044c8
mov eax, dword [eax + 0x13c]
test eax, eax
je 0x5044c8
fld dword [0x554cf8]
push ecx
mov esi, 0x576b50
fstp dword [esp]
mov byte [eax + 0x80], 1
call fcn.004033c0
fchs
fstp dword [esp + 0x20]
push ecx
fld dword [0x554cf8]
fstp dword [esp]
call fcn.004033c0
fadd qword [0x554cf0]
mov eax, dword [ebx + 0x8c]
mov eax, dword [eax + 0x13c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x20]
mov dword [eax + 0x1c], ecx
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
fldz
mov dword [eax + 0x20], edx
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fld dword [0x554bb4]
mov dword [eax + 0x24], ecx
mov edx, dword [0x5b31e0]
fstp dword [edx + 0x7c]
mov dword [ebx + 0x8c], 0
jmp 0x5044c8
fsub dword [esp + 0x1c]
fstp dword [esi]
inc edi
add esi, 0x78
cmp edi, dword [0x5b2b48]
jl 0x5045e4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4