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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519d1c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
mov eax, dword [ecx + 0xd4]
mov edi, dword [eax]
mov dword [esp + 0x34], edi
cmp edi, eax
jne 0x4a29da
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x34]
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x4a319f
push 7
call fcn.0045f05c
mov ebx, eax
lea eax, [edi + 0x14]
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4a29fc
mov eax, dword [eax]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a2a00
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], ebx
call fcn.0042e160
push ebx
mov esi, eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov ecx, dword [edi + 0xc]
add esp, 4
mov eax, esi
mov dword [esp + 0x10], esi
test esi, esi
jns 0x4a2a3a
lea eax, [esi + 0x100]
mov dword [esp + 0x10], eax
cmp eax, 0x100
jge 0x4a2a4f
mov eax, dword [ecx + eax*4 + 4]
test eax, eax
je 0x4a2a4f
mov dword [esp + 0x10], eax
jmp 0x4a2a79
mov edx, dword [ecx + 0x404]
xor eax, eax
test edx, edx
jle 0x4a2a71
mov esi, dword [ecx]
mov ecx, esi
nop
movzx ebx, word [ecx]
cmp ebx, dword [esp + 0x10]
je 0x4a2ab6
inc eax
add ecx, 0x24
cmp eax, edx
jl 0x4a2a60
mov dword [esp + 0x10], 0
mov esi, dword [edi + 0x24]
lea eax, [edi + 0x14]
mov ecx, esi
cmp ecx, esi
jae 0x4a2a85
mov ecx, esi
cmp esi, 1
jb 0x4a2a91
mov ecx, 1
cmp dword [eax + 0x14], 0x10
jb 0x4a2a99
mov eax, dword [eax]
push ecx
push 0x54cf50
push eax
call fcn.00408ef0
add esp, 0xc
test eax, eax
jne 0x4a2acc
cmp esi, 1
jae 0x4a2ac2
or eax, 0xffffffff
jmp 0x4a2aca
lea eax, [eax + eax*8]
lea ecx, [esi + eax*4]
mov dword [esp + 0x10], ecx
jmp 0x4a2a79
xor eax, eax
cmp esi, 1
setne al
test eax, eax
sete al
test al, al
mov eax, dword [esp + 0x18]
je 0x4a2ade
add eax, 0xe4
jmp 0x4a2ae3
add eax, 0xe0
mov dword [esp + 0x20], 0
mov esi, dword [eax]
test esi, esi
je 0x4a2b04
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x4a2b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov esi, eax
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a2b60
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a2b56
mov eax, dword [esi + 8]
push 1
push 0
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x4a2b4e
mov edx, dword [ebx]
jmp 0x4a2b60
mov ecx, dword [esi + 8]
call fcn.004037e0
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea ecx, [edi + 0x14]
mov dword [esp + 0xa0], 0
mov esi, dword [ecx + 0x10]
mov eax, esi
cmp eax, esi
jae 0x4a2b77
mov eax, esi
cmp esi, 1
jb 0x4a2b83
mov eax, 1
cmp dword [ecx + 0x14], 0x10
jb 0x4a2b8b
mov ecx, dword [ecx]
push eax
push 0x54cf54
push ecx
call fcn.00408ef0
add esp, 0xc
test eax, eax
jne 0x4a2bb2
cmp esi, 1
jae 0x4a2ba8
or eax, 0xffffffff
jmp 0x4a2bb0
xor eax, eax
cmp esi, 1
setne al
test eax, eax
sete al
test al, al
je 0x4a2bfa
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xe8]
test esi, esi
je 0x4a2bda
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x4a2bfa
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
push 0x164
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a2d46
mov dword [esp + 0x40], vtable.Mortar::Delegate0_void_::Global.0
mov dword [esp + 0x44], 0x49ded0
or dword [esp + 0x1c], 1
sub esp, 0x24
mov eax, esp
mov dword [esp + 0x60], esp
mov dword [esp + 0x4c], eax
mov byte [eax + 0x20], 1
mov dword [eax], 0
mov dword [esp + 0xc4], 3
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x68]
call eax
fld dword [edi + 0x3c]
sub esp, 0xc
mov eax, esp
fstp dword [eax]
mov dword [esp + 0x58], esp
fld dword [edi + 0x40]
fstp dword [eax + 4]
fld dword [edi + 0x44]
fstp dword [eax + 8]
push 0xffffffffffffffff
lea ecx, [edi + 8]
lea eax, [esp + 0xa4]
call fcn.00413970
or dword [esp + 0x50], 2
sub esp, 0x24
mov edx, esp
mov dword [esp + 0x90], esp
mov dword [esp + 0x88], edx
mov byte [edx + 0x20], 1
mov dword [edx], 0
mov dword [esp + 0xf8], 7
mov esi, dword [eax]
push edx
mov edx, dword [esi + 4]
mov ecx, eax
call edx
mov edx, dword [esp + 0x70]
sub esp, 0xc
mov dword [esp + 0x104], 8
lea ecx, [edi + 0x30]
add edx, 8
mov eax, esp
mov dword [esp + 0x94], esp
call fcn.00403dd0
push ecx
mov byte [esp + 0x108], 9
mov ebx, esp
mov dword [ebx], 0
mov esi, dword [esp + 0x88]
mov dword [esp + 0x94], esp
test esi, esi
je 0x4a2d17
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x4a2d33
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0x108], 0xa
call fcn.004a05c0
jmp 0x4a2d48
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x10], eax
test cl, 2
je 0x4a2d63
and ecx, 0xfffffffd
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], vtable.Mortar::Delegate0_void_::BaseDelegate.0
mov dword [esp + 0xa0], 0
test cl, 1
je 0x4a2d82
and ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], vtable.Mortar::Delegate0_void_::BaseDelegate.0
fldz
mov esi, dword [esp + 0x18]
fst dword [eax + 0x154]
fst dword [eax + 0x158]
mov ecx, dword [edi + 0x10]
fld dword [0x554e50]
mov byte [ecx + 0x129], 0
mov edx, dword [edi + 0x10]
fstp dword [edx + 0x10]
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x34]
mov dword [eax + 0x34], ecx
mov edx, dword [0x576b54]
mov eax, dword [0x576b50]
mov ecx, dword [0x576b5c]
push edx
mov edx, dword [0x576b58]
push eax
push ecx
push edx
call fcn.00513700
add eax, dword [0x576b60]
mov ecx, 0x7ffff
adc edx, dword [0x576b64]
mov dword [0x576b50], eax
mov eax, edx
mov dword [0x576b54], edx
mul ecx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
test edx, edx
jns 0x4a2e05
fadd dword [0x554b74]
fstp dword [esp + 0x14]
mov edx, dword [edi + 0x10]
fld dword [esp + 0x14]
fdiv qword [0x554c60]
fmul qword [0x554bc0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fsub qword [0x554cf0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [edx + 0x2c]
mov eax, dword [esi + 0xe0]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x4a2e56
mov eax, dword [edi + 0x10]
fstp st(0)
fld dword [eax + 0x2c]
fdiv qword [0x554dc8]
fstp dword [eax + 0x2c]
jmp 0x4a2e69
cmp dword [esi + 0x104], 0
je 0x4a2e67
mov edx, dword [edi + 0x10]
fstp dword [edx + 0x2c]
jmp 0x4a2e69
fstp st(0)
mov ecx, dword [edi + 0x10]
add ecx, 0x5c
lea esi, [esp + 0x24]
lea eax, [esp + 0x6c]
mov dword [esp + 0x24], 0x968a3704
call fcn.00403890
mov ebx, dword [0x5b30b0]
mov esi, dword [ebx]
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x4c]
push ecx
push edx
push esi
mov dword [esp + 0x58], eax
call fcn.0040f3e0
mov ecx, dword [ebx + 4]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x4a323d
inc ecx
mov dword [ebx + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov esi, dword [edi + 0x24]
lea eax, [edi + 0x14]
mov ecx, esi
cmp ecx, esi
jae 0x4a2ecd
mov ecx, esi
cmp esi, 1
jb 0x4a2ed9
mov ecx, 1
cmp dword [eax + 0x14], 0x10
jb 0x4a2ee1
mov eax, dword [eax]
push ecx
push 0x54cf58
push eax
call fcn.00408ef0
add esp, 0xc
test eax, eax
jne 0x4a2f08
cmp esi, 1
jae 0x4a2efe
or eax, 0xffffffff
jmp 0x4a2f06
xor eax, eax
cmp esi, 1
setne al
test eax, eax
sete al
test al, al
je 0x4a2fcb
push 1
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
mov cl, 0xff
mov dword [eax], 0xfffff4d0
fld dword [edi + 0x3c]
sub esp, 0xc
mov eax, esp
fstp dword [eax]
mov dword [esp + 0x44], esp
fld dword [edi + 0x40]
fstp dword [eax + 4]
fld dword [edi + 0x44]
fstp dword [eax + 8]
fldz
sub esp, 0xc
mov eax, esp
fst dword [eax]
fst dword [eax + 4]
mov dword [esp + 0x58], esp
fld dword [0x554e50]
fstp dword [eax + 8]
mov byte [esp + 0xc0], 0xf
mov eax, dword [edi + 0x10]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0x2c]
fstp dword [esp]
push 0
push ecx
mov ecx, dword [esp + 0x48]
mov ebx, esp
mov dword [ebx], 0
mov esi, dword [ecx + 0xf4]
mov dword [esp + 0x58], esp
test esi, esi
je 0x4a2f9f
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x4a2fbb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
mov byte [esp + 0xd0], 0
mov ebx, dword [edi + 0x10]
call fcn.0049e270
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4a3135
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xe0]
mov edx, dword [esp + 0x20]
cmp edx, eax
jne 0x4a3135
mov eax, dword [edi + 0xc]
fld dword [eax + 0x424]
fidiv dword [eax + 0x41c]
fmul dword [ecx + 0xc]
fstp dword [esp + 0x10]
fld dword [eax + 0x424]
fidiv dword [eax + 0x420]
fmul dword [ecx + 0x10]
fstp dword [esp + 0x3c]
fld dword [ecx + 8]
fstp dword [esp + 0x14]
fld dword [ecx + 4]
fstp dword [esp + 0x50]
fld dword [esp + 0x14]
fst dword [esp + 0x54]
cmp byte [0x5b3073], 0xc
fld dword [esp + 0x50]
fadd dword [esp + 0x10]
fstp dword [esp + 0x58]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x5c]
fld dword [0x5768e0]
fstp dword [esp + 0x10]
jne 0x4a305d
fld dword [0x5768e4]
fstp dword [esp + 0x10]
push 1
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], 0xfffff4d0
fldz
sub esp, 0xc
mov eax, esp
fst dword [eax]
mov dword [esp + 0x44], esp
fst dword [eax + 4]
fld dword [esp + 0x24]
fstp dword [eax + 8]
sub esp, 0xc
mov eax, esp
fst dword [eax]
mov dword [esp + 0x58], esp
fst dword [eax + 4]
fld dword [0x554e50]
fstp dword [eax + 8]
mov byte [esp + 0xc0], 0x13
mov eax, dword [edi + 0x10]
sub esp, 8
fstp dword [esp + 4]
lea edx, [esp + 0x78]
fld dword [eax + 0x2c]
movzx eax, byte [ecx + 0x20]
mov ecx, dword [edi + 0xc]
fstp dword [esp]
push edx
mov edx, dword [ecx + 0x408]
push ecx
mov ebx, esp
lea eax, [edx + eax*8]
mov dword [ebx], 0
mov esi, dword [eax + 4]
mov dword [esp + 0x58], esp
test esi, esi
je 0x4a30ee
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x4a310a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
mov byte [esp + 0xd0], 0x10
mov ebx, dword [edi + 0x10]
call fcn.0049e270
push fcn.00417af0
push 2
push 8
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0xb0], 0
call fcn.0045f1ec
push 0
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0xa8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x4a31c6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a31c6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a3193
mov eax, dword [esi + 8]
push 1
push 0
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x4a318b
mov edx, dword [edi]
jmp 0x4a31c6
mov ecx, dword [esi + 8]
call fcn.004037e0
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x4a31c6
mov edx, dword [esp + 0x18]
lea ecx, [edi + 0x30]
add edx, 8
lea eax, [esp + 0x88]
call fcn.00403dd0
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x10], eax
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0x104]
test esi, esi
je 0x4a320f
fld dword [0x555178]
lea edx, [edi + 8]
fstp dword [esp + 0x60]
lea ecx, [esp + 0x60]
fld dword [0x555528]
lea eax, [esp + 0x7c]
fstp dword [esp + 0x64]
fldz
fstp dword [esp + 0x68]
call fcn.00403dd0
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
cmp eax, dword [edi + 0xd4]
jne 0x4a29d6
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3