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

Disassembly:
push 0xffffffffffffffff
push 0x52d0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x48]
push edi
push eax
push ecx
call dword [0x56de60]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0xb8]
push edx
push eax
push esi
call dword [0x56cc28]
mov edi, eax
push esi
mov dword [esp + 0x84], edi
call dword [0x56cc1c]
mov ebp, eax
push edi
push ebp
call dword [0x56cc18]
push 0
mov dword [esp + 0x80], eax
call dword [0x56cc00]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebp
call dword [0x56deec]
mov esi, dword [ebx]
fild dword [esi + 0x1dc]
fld dword [esi + 0x5c]
fadd dword [esi + 0x58]
fmul st(1)
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x64]
fadd dword [esi + 0x60]
fimul dword [esi + 0x1e0]
mov edi, dword [esi + 0x1d4]
sub edi, eax
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x1d8]
fmul dword [esi + 0x58]
sub ecx, eax
mov dword [esp + 0x18], ecx
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x34], eax
fild dword [esi + 0x1e0]
fmul dword [esi + 0x60]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
lea edx, [ecx + edi]
mov edi, dword [0x56cdac]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x1d4]
push eax
push edx
push ecx
call edi
mov edx, dword [esp + 0x58]
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1d8]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call edi
mov ecx, dword [ebx]
mov dword [esp + 0x70], eax
mov edx, dword [ecx + 0x1d4]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
call edi
mov edx, dword [ebx]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0x1d8]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
call edi
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x78]
push eax
push ecx
push esi
call dword [0x56cbc4]
push eax
push ebp
mov dword [esp + 0x50], eax
call dword [0x56cbcc]
push 8
push ebp
call dword [0x56cb10]
mov eax, dword [ebx]
push 0
mov edx, dword [eax + 0x1d8]
mov eax, dword [eax + 0x1d4]
push edx
push eax
push ebp
call dword [0x56cb14]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push 0
push ecx
push edx
push ebp
call dword [0x56cb18]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x4d8349
mov ecx, dword [eax + 0x1f4]
mov edx, dword [eax + 0x1c8]
cmp edx, ecx
jge 0x4d8a7e
mov ecx, dword [eax + 0x1c8]
mov edx, dword [eax + 0x1f4]
dec ecx
cmp ecx, edx
jge 0x4d8a7e
test ecx, ecx
jl 0x4d8a7e
mov edx, dword [eax + 0x1f0]
mov ecx, dword [edx + ecx*4]
test ecx, ecx
mov dword [esp + 0x44], ecx
je 0x4d8a7e
mov ecx, dword [eax + 0x194]
test ecx, ecx
jbe 0x4d8497
mov cl, byte [eax + 0x88]
test cl, cl
je 0x4d8497
mov eax, dword [eax + 0x214]
push eax
push ebp
call dword [0x56cc18]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [0x56d918]
add eax, 0x18c
mov cl, byte [eax]
mov byte [esp + 0x14], cl
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov edx, dword [edx]
push edx
push ecx
push eax
lea ecx, [esp + 0x20]
call dword [0x56d928]
mov ecx, dword [ebx]
push 0
push 1
push 0
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0xc0], 0
call fcn.004d5450
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0x22c]
add edx, ecx
mov dword [esp + 0x68], edx
mov eax, dword [eax + 0x1bc]
push eax
push ebp
call dword [0x56cb70]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4d843b
mov eax, dword [0x56d920]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x220]
lea ecx, [esp + 0x5c]
push edx
push ecx
push 0xffffffffffffffff
push eax
push ebp
call dword [0x56ddb8]
mov edx, dword [esp + 0x28]
push edx
push ebp
call dword [0x56cb70]
push esi
push ebp
call dword [0x56cc18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], 0xffffffff
test eax, eax
je 0x4d8497
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d848e
cmp al, 0xff
je 0x4d848e
dec al
mov byte [ecx], al
jmp 0x4d8497
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1a4]
test ecx, ecx
jbe 0x4d867c
mov cl, byte [eax + 0x89]
test cl, cl
je 0x4d867c
mov eax, dword [eax + 0x218]
push eax
push ebp
call dword [0x56cc18]
mov esi, dword [ebx]
mov edx, dword [0x56d918]
add esi, 0x19c
mov dword [esp + 0x28], eax
xor eax, eax
mov cl, byte [esi]
mov dword [esp + 0x18], eax
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [edx]
mov ecx, dword [esi + 8]
cmp eax, ecx
mov dword [esp + 0x10], ecx
jae 0x4d84fc
mov dword [esp + 0x10], eax
mov ecx, eax
lea edx, [esp + 0x14]
cmp edx, esi
jne 0x4d8523
push eax
push ecx
lea ecx, [esp + 0x1c]
call dword [0x56d91c]
push 0
push 0
lea ecx, [esp + 0x1c]
call dword [0x56d91c]
jmp 0x4d85b8
test ecx, ecx
jbe 0x4d8572
cmp ecx, dword [esi + 8]
jne 0x4d8572
mov eax, dword [esi + 4]
test eax, eax
jne 0x4d8538
mov eax, dword [0x56d920]
cmp byte [eax - 1], 0xfe
jae 0x4d8572
push 1
lea ecx, [esp + 0x18]
call dword [0x56d914]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4d8556
mov eax, dword [0x56d920]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x20], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4d85b8
push 1
push ecx
lea ecx, [esp + 0x1c]
call dword [0x56d90c]
test al, al
je 0x4d85b8
mov esi, dword [esi + 4]
test esi, esi
jne 0x4d8590
mov esi, dword [0x56d920]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edi, dword [0x56cdac]
mov dword [esp + 0x1c], eax
mov byte [ecx + eax], 0
mov ecx, dword [ebx]
push 0
push 1
push 0
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0xc0], 1
call fcn.004d5450
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx]
mov edx, ecx
mov esi, dword [eax + 0x234]
mov dword [esp + 0x68], ecx
sub edx, esi
mov esi, dword [0x56cb70]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], edx
mov eax, dword [eax + 0x1c0]
push eax
push ebp
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4d861c
mov eax, dword [0x56d920]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x224]
lea ecx, [esp + 0x5c]
push edx
push ecx
push 0xffffffffffffffff
push eax
push ebp
call dword [0x56ddb8]
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c0]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call dword [0x56cc18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], 0xffffffff
test eax, eax
je 0x4d867c
mov cl, byte [eax - 1]
test cl, cl
je 0x4d8672
cmp cl, 0xff
je 0x4d8672
dec cl
mov byte [eax - 1], cl
jmp 0x4d867c
dec eax
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [edx + 8]
test eax, eax
jle 0x4d89e2
jmp 0x4d8697
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jge 0x4d89e2
test ecx, ecx
jl 0x4d89e2
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov esi, dword [edx + ecx*4]
test esi, esi
je 0x4d89e2
cmp dword [esi], 0
je 0x4d89e2
mov eax, dword [esi + 8]
mov dword [esp + 0x84], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x88], ecx
mov edx, dword [esi + 0x10]
add edx, dword [esi + 8]
mov dword [esp + 0x8c], edx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x84]
add eax, ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x90], eax
push ecx
lea eax, [esp + 0x98]
push edx
push eax
call dword [0x56ddc8]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x94]
push ecx
push edx
call dword [0x56df68]
test eax, eax
jne 0x4d8762
push eax
push ebp
call dword [0x56cbcc]
push 0xff
call dword [0x56cc08]
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x88]
push eax
push ebp
call dword [0x56deec]
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x56cc10]
mov edx, dword [esp + 0x48]
push edx
push ebp
call dword [0x56cbcc]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
call fcn.004e0800
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
push ecx
mov ecx, dword [esi]
call fcn.004e0350
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov dword [esp + 0x18], eax
call fcn.004e03d0
mov ecx, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push eax
call fcn.004e0f80
test eax, eax
je 0x4d8a40
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d8a40
mov ecx, dword [ebx]
add ecx, 0x14
push ecx
call dword [0x56de70]
test eax, eax
jne 0x4d887f
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
call fcn.004e0500
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.004e0350
mov ecx, dword [ebx]
push eax
mov edx, dword [ecx + 0x14]
push edx
call edi
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
push eax
call fcn.004e05b0
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, dword [esi]
call fcn.004e03d0
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x18]
push eax
call edi
mov ecx, dword [ebx]
mov edx, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi]
push edx
mov dword [esp + 0x30], eax
call fcn.004e0500
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x18]
push ecx
push edx
call edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push ecx
mov ecx, dword [esi]
mov dword [esp + 0x28], eax
call fcn.004e05b0
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call fcn.00472050
add esp, 0x14
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xb8]
push edx
call dword [0x56cc1c]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [0x56cc18]
push 3
push ebp
mov dword [esp + 0x2c], eax
call dword [0x56cbd4]
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, dword [esi]
call fcn.004e07c0
test eax, eax
mov dword [esp + 0x30], eax
je 0x4d88ec
push 0
push eax
push ebp
call dword [0x56cbd0]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xb8]
push 0
push edx
push eax
call dword [0x56cbd0]
mov ecx, dword [esp + 0xb8]
push ecx
call dword [0x56cbe8]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x14]
push 0xcc0020
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0xc]
push 0
push 0
push edi
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
push ebp
call dword [0x56cb1c]
mov edx, dword [esp + 0x2c]
push edx
push ebp
call dword [0x56cbd4]
mov eax, dword [esp + 0x24]
push eax
push edi
call dword [0x56cc18]
push edi
call dword [0x56cc0c]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4d8955
mov ecx, dword [ebx]
add ecx, 0x14
push ecx
call dword [0x56de70]
test eax, eax
jne 0x4d8955
push edi
call dword [0x56cc10]
mov edi, dword [0x56cdac]
mov eax, dword [esi + 0x30]
test eax, eax
jbe 0x4d89ca
mov eax, dword [ebx]
mov cl, byte [eax + 0x8a]
test cl, cl
je 0x4d89ca
mov edx, dword [eax + 0x210]
push edx
push ebp
call dword [0x56cc18]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1c4]
push ecx
push ebp
call dword [0x56cb70]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4d89a0
mov eax, dword [0x56d920]
mov edx, dword [esi + 0x38]
add esi, 0x18
push edx
push esi
push 0xffffffffffffffff
push eax
push ebp
call dword [0x56ddb8]
mov eax, dword [esp + 0x30]
push eax
push ebp
call dword [0x56cb70]
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call dword [0x56cc18]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
inc ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x28], ecx
cmp ecx, eax
jl 0x4d8693
push 0
push ebp
call dword [0x56cbcc]
push 0x7f7f7f
push 1
push 2
call dword [0x56cbb8]
push eax
push ebp
call dword [0x56cc18]
push 5
mov esi, eax
call dword [0x56cc00]
mov edi, dword [0x56cc18]
push eax
push ebp
call edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push ebp
call dword [0x56cbf4]
push esi
push ebp
call edi
mov esi, dword [0x56cc10]
push eax
call esi
jmp 0x4d8a84
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [edx + eax - 1]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x74], eax
push 2
lea eax, [edx + ecx - 1]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], eax
call dword [0x56cc00]
lea ecx, [esp + 0x6c]
push eax
push ecx
push ebp
call dword [0x56deec]
jmp 0x4d895b
mov esi, dword [0x56cc10]
push 1
push ebp
call dword [0x56cb10]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0xb8]
push 0xcc0020
push 0
push 0
push ebp
push ecx
push edx
push 0
push 0
push eax
call dword [0x56cc14]
mov ecx, dword [esp + 0x7c]
push ecx
push ebp
call dword [0x56cc18]
mov edx, dword [esp + 0x48]
push edx
call esi
mov eax, dword [esp + 0x80]
push eax
call esi
push ebp
call dword [0x56cc0c]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 8