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

Disassembly:
push 0xffffffffffffffff
push 0x52d084
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x80
mov dword [esp + 0x48], 0x539e30
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x4c], eax
xor eax, eax
add esp, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x1f
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x40
fild dword [ebp + 0x1dc]
fld dword [ebp + 0x5c]
fadd dword [ebp + 0x58]
mov dword [esp + 0xc0], eax
fmul st(1)
call sub.MSVCRT.dll__ftol
fild dword [ebp + 0x1e0]
mov esi, dword [ebp + 0x1d4]
sub esi, eax
fstp dword [esp + 0x14]
fld dword [ebp + 0x64]
fadd dword [ebp + 0x60]
mov dword [esp + 0x78], esi
fmul dword [esp + 0x14]
call sub.MSVCRT.dll__ftol
mov ebx, dword [ebp + 0x1d8]
fmul dword [ebp + 0x58]
sub ebx, eax
mov dword [esp + 0x7c], ebx
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x14]
fmul dword [ebp + 0x60]
mov edi, eax
mov dword [esp + 0x80], edi
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x84], eax
add eax, ebx
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x78]
lea ecx, [esp + 0x80]
push eax
add edi, esi
push ecx
mov ecx, ebp
mov dword [esp + 0x90], edi
call fcn.004d5670
fild dword [ebp + 0x1dc]
fmul dword [ebp + 0x1cc]
call sub.MSVCRT.dll__ftol
fild dword [ebp + 0x1e0]
mov dword [esp + 0x70], eax
fmul dword [ebp + 0x1d0]
call sub.MSVCRT.dll__ftol
movsx ecx, word [ebp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
cdq
idiv ecx
movsx ecx, word [ebp + 0x7e]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
cdq
idiv ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
cmp ecx, esi
jle 0x4d5c83
cmp esi, ecx
jge 0x4d59d9
test esi, esi
jl 0x4d59d9
mov edx, dword [eax + 4]
mov ebx, dword [edx + esi*4]
jmp 0x4d59db
xor ebx, ebx
mov ecx, ebx
call fcn.004e1360
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edi, edi
mov dword [esp + 0x14], eax
jg 0x4d59f5
mov edi, 1
test eax, eax
jg 0x4d5a04
mov ecx, ebx
call fcn.004e1400
mov dword [esp + 0x14], eax
dec edi
cmp edi, eax
mov dword [esp + 0x18], edi
jge 0x4d5c72
mov eax, dword [ebp + 0x40]
xor edi, edi
cmp eax, edi
jne 0x4d60ee
push 0x3c
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
cmp ebx, edi
mov byte [esp + 0xc0], 1
je 0x4d5a54
mov al, byte [esp + 0x3b]
lea ecx, [ebx + 0x28]
mov dword [ebx], edi
mov dword [ebx + 4], edi
push edi
mov byte [ecx], al
call dword [0x56d914]
mov dword [ebx + 0x38], edi
jmp 0x4d5a56
xor ebx, ebx
mov eax, dword [ebp]
mov byte [esp + 0xc0], 0
cmp esi, dword [eax + 8]
jge 0x4d5a72
cmp esi, edi
jl 0x4d5a72
mov ecx, dword [eax + 4]
mov esi, dword [ecx + esi*4]
jmp 0x4d5a74
xor esi, esi
mov edx, dword [esp + 0x18]
mov dword [ebx], esi
mov dword [ebx + 4], edx
mov eax, dword [ebp + 0x1b4]
cmp eax, edi
jbe 0x4d5bf7
mov al, byte [ebp + 0x8a]
test al, al
je 0x4d5bf7
mov eax, dword [0x56d918]
lea edi, [ebx + 0x28]
lea edx, [ebp + 0x1ac]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, edi
call dword [0x56d928]
mov eax, dword [ebp + 4]
test eax, eax
je 0x4d5ad3
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 8]
cmp ecx, edx
jge 0x4d5ad3
test ecx, ecx
jl 0x4d5ad3
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
jmp 0x4d5ad5
xor eax, eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
xor esi, esi
push eax
push esi
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004d5450
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xa0], eax
mov al, byte [ebp + 0x142]
mov dword [esp + 0xa8], esi
test al, al
mov dword [esp + 0xac], esi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa4], ecx
jne 0x4d5b32
cmp al, 1
jne 0x4d5b3b
mov esi, 1
cmp al, 2
jne 0x4d5b44
mov esi, 2
mov eax, dword [ebp + 0x210]
mov ecx, dword [ebp + 0x38]
push eax
push ecx
or esi, 0x810
call dword [0x56cc18]
mov eax, dword [edi + 4]
test eax, eax
jne 0x4d5b67
mov eax, dword [0x56d920]
mov edx, esi
lea ecx, [esp + 0xa8]
or edx, 0x408
push edx
mov edx, dword [ebp + 0x38]
push ecx
push 0xffffffffffffffff
push eax
push edx
call dword [0x56ddb8]
mov edi, dword [edi + 4]
mov dword [esp + 0x28], eax
test edi, edi
jne 0x4d5b96
mov edi, dword [0x56d920]
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x98]
push esi
push eax
push 0xffffffffffffffff
push edi
push ecx
call dword [0x56ddb8]
or esi, 0x8000
xor ecx, ecx
mov dword [ebx + 0x38], esi
mov edx, dword [esp + 0xb4]
cmp edx, dword [esp + 0xa4]
setne cl
xor edx, edx
cmp ecx, edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
je 0x4d5bdd
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x20], ecx
jmp 0x4d5be8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x20], edx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x24], eax
cmp eax, ecx
jle 0x4d5bf7
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x4d5c59
mov eax, dword [esp + 0x50]
lea esi, [eax + 1]
mov eax, dword [esp + 0x4c]
cmp eax, esi
jne 0x4d5c49
mov ecx, dword [esp + 0x50]
lea edx, [ecx*4 + 0x104]
push edx
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x2c], eax
mov ecx, esi
mov esi, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
add esp, 8
add eax, 0x40
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [edx + eax*4], ebx
inc eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4d5a11
mov eax, dword [ebp]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [eax + 8]
jl 0x4d59cd
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
jle 0x4d60c6
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], ecx