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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d7840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x48], 0x5f0294
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x78], edi
cmp ebx, edi
jne 0x51ba90
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
jmp 0x51bab1
mov eax, ebx
shl eax, 5
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x4c], eax
push ebx
push eax
call fcn.0051d320
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov esi, dword [ebp + 0x14]
cmp ebx, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x40f86a00
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jle 0x51bb7d
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
xor ecx, ecx
mov dword [esp + 0x14], ebx
fld qword [esp + 0x34]
fadd qword [edx]
fstp qword [esp + 0x34]
fld qword [edx]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
je 0x51bb15
fld qword [edx]
fstp qword [esp + 0x3c]
fld qword [edx]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 1
jne 0x51bb28
fld qword [edx]
fstp qword [esp + 0x24]
mov ebx, dword [esp + 0x4c]
mov eax, dword [edx]
add edx, 8
mov dword [ebx + ecx + 0x10], eax
mov ebx, dword [esp + 0x4c]
mov eax, dword [edx - 4]
mov dword [ebx + ecx + 0x14], eax
mov ebx, dword [esp + 0x4c]
xor eax, eax
mov dword [ebx + ecx], eax
mov ebx, dword [esp + 0x4c]
mov dword [ebx + ecx + 0x18], eax
mov ebx, dword [esp + 0x4c]
mov dword [ebx + ecx + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [eax + ecx + 8], edi
lea eax, [esi*4]
add edi, eax
mov eax, dword [esp + 0x14]
add ecx, 0x20
dec eax
mov dword [esp + 0x14], eax
jne 0x51baf8
mov ebx, dword [ebp + 0x10]
xor edi, edi
xor edx, edx
mov dword [esp + 0x5c], 0x5e2984
mov dword [esp + 0x60], edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
cmp esi, edi
mov byte [esp + 0x78], 1
jne 0x51bbaa
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
jmp 0x51bbd1
lea ecx, [esi*8]
push ecx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x60], eax
push esi
push eax
call fcn.0049df10
mov edx, dword [esp + 0x60]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
cmp esi, edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], edi
jle 0x51bc51
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ecx, edx
mov dword [esp + 0x14], eax
mov eax, edi
sub ecx, edi
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x14]
mov dword [ecx + eax], 0
mov dword [ecx + eax + 4], 0
mov ebx, dword [esp + 0x10]
mov edx, dword [edx]
add eax, 8
mov dword [esp + 0x1c], edx
add ebx, edx
fild dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
fmul qword [eax - 8]
add ebx, 4
dec edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
fadd qword [esp + 0x2c]
fstp qword [esp + 0x2c]
jne 0x51bbfd
mov ebx, dword [ebp + 0x10]
mov edx, dword [esp + 0x60]
jmp 0x51bc54
mov edi, dword [ebp + 0x18]
fld qword [esp + 0x34]
fsub qword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
fst qword [esp + 0x3c]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x51bc82
mov eax, 1
jmp 0x51bc84
xor eax, eax
cmp eax, ebx
jge 0x51bccb
mov ecx, dword [ebp + 0x10]
mov ebx, eax
shl ebx, 5
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x51bc9c
mov edx, dword [esp + 0x60]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x4c]
push edx
push eax
push edi
push esi
add ecx, ebx
call fcn.0051a8b0
fadd qword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ebx, 0x20
dec eax
mov dword [esp + 0x18], eax
fstp qword [esp + 0x1c]
jne 0x51bc98
mov ebx, dword [ebp + 0x10]
mov edx, dword [esp + 0x60]
fld qword [esp + 0x1c]
fadd qword [esp + 0x2c]
fst qword [esp + 0x2c]
fcomp qword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x51bd38
mov ecx, ebx
mov edi, dword [ebp + 0x20]
imul ecx, esi
shl ecx, 2
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x5c], 0x5e2984
and ecx, 3
rep stosb byte es:[edi], al
test edx, edx
mov byte [esp + 0x78], 2
je 0x51bd17
push edx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x48], 0x5f0294
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], 3
test eax, eax
je 0x51c006
jmp 0x51bffd
mov eax, dword [ebp + 8]
test eax, eax
je 0x51bd64
cmp esi, 1
je 0x51bd64
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ebp + 0x1c]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push edi
push esi
push eax
push ecx
push edx
call fcn.0051b250
add esp, 0x1c
jmp 0x51bd8e
mov eax, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x54]
push esi
push ecx
push edx
push eax
call fcn.0051adf0
lea ecx, [esp + 0x64]
push ecx
push edi
push esi
call fcn.0051b640
add esp, 0x28
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x48]
push edx
push esi
push eax
call fcn.0051b850
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x51bed9
cmp ecx, ebx
jne 0x51bed9
fld qword [esp + 0x3c]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x51bed9
fld qword [esp + 0x3c]
fsub qword [esp + 0x2c]
mov dword [esp + 0x14], 0
fmul qword [0x5e3e08]
fidiv dword [ebp + 0x10]
fstp qword [esp + 0x3c]
push edi
push esi
push ecx
lea ecx, [esp + 0x54]
push ecx
call fcn.0051b8b0
add esp, 0x10
test ebx, ebx
jle 0x51be6e
mov edx, dword [esp + 0x4c]
xor edi, edi
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x18]
lea ebx, [edi + edx]
mov edx, dword [edi + edx + 8]
push edx
push eax
push esi
call fcn.0051a560
fstp qword [ebx + 0x18]
mov edx, dword [esp + 0x58]
add esp, 0xc
fld qword [edi + edx + 0x10]
fsub qword [edi + edx + 0x18]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x51be5a
xor eax, eax
test esi, esi
jle 0x51be5a
mov ecx, dword [esp + 0x60]
mov edx, dword [edx + edi + 8]
inc eax
add ecx, 8
cmp eax, esi
fild dword [edx + eax*4 - 4]
fmul qword [0x5f02a8]
fadd qword [ecx - 8]
fstp qword [ecx - 8]
mov edx, dword [esp + 0x4c]
jl 0x51be3a
mov eax, dword [esp + 0x18]
add edi, 0x20
dec eax
mov dword [esp + 0x18], eax
jne 0x51be01
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edi
lea edx, [esp + 0x54]
push esi
push edx
push eax
push ecx
call fcn.0051b250
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x64]
push edx
push esi
push eax
call fcn.0051b850
mov ecx, eax
lea edx, [ebx - 1]
add esp, 0x28
cmp ecx, edx
je 0x51bebd
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x64
mov dword [esp + 0x14], eax
jl 0x51bde3
jmp 0x51bed9
push edi
push esi
lea eax, [esp + 0x50]
push ecx
push eax
call fcn.0051b8b0
lea ecx, [esp + 0x58]
push ecx
push edi
push esi
call fcn.0051b640
add esp, 0x1c
xor edx, edx
cmp ebx, edx
mov dword [esp + 0x14], edx
jle 0x51bf4f
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x4c]
cmp dword [edx + eax], 0
je 0x51bf26
test esi, esi
jle 0x51bf41
mov ecx, dword [edx + eax + 8]
mov dword [esp + 0x18], esi
mov eax, dword [ecx]
test eax, eax
je 0x51bf16
mov edi, dword [esp + 0x10]
sub edi, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x51befd
jmp 0x51bf41
xor eax, eax
test esi, esi
jle 0x51bf41
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, esi
mov ecx, dword [ecx + edx + 8]
mov dword [ecx + eax*4 - 4], 0
jl 0x51bf2c
mov eax, dword [esp + 0x1c]
add edx, 0x20
dec eax
mov dword [esp + 0x1c], eax
jne 0x51bee7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x51bfac
mov dword [esp + 0x5c], 0x5e2984
mov eax, dword [esp + 0x60]
mov byte [esp + 0x78], 4
test eax, eax
je 0x51bf75
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x48], 0x5f0294
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], 5
test eax, eax
je 0x51bf96
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
mov edi, dword [ebp + 0x20]
imul ecx, esi
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x5c], 0x5e2984
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x60]
mov byte [esp + 0x78], 6
test eax, eax
je 0x51bfe5
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x48], 0x5f0294
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], 7
test eax, eax
je 0x51c006
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0x70]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret