Function at 0x4a1e70
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db13c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
cmp dword [eax], 4
jge 0x4a1ed2
mov edx, dword [ebp + 0x14]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
mov ecx, 4
mov dword [eax], 0x3f800000
add eax, 0x14
dec ecx
jne 0x4a1eb1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
push fcn.004011f0
push fcn.004294b0
push 2
lea ecx, [esp + 0x5c]
push 0x18
push ecx
mov esi, ebx
call fcn.004ce784
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x108]
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x80], eax
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0x88]
mov dword [esp + 0x84], eax
mov dword [esp + 0x298], eax
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0x2a0]
mov dword [esp + 0x29c], eax
mov edx, dword [ebp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0x1a0]
mov dword [esp + 0x198], eax
mov dword [esp + 0x19c], eax
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0x220]
mov dword [esp + 0x218], eax
mov dword [esp + 0x21c], eax
rep stosd dword es:[edi], eax
mov ecx, dword [edx]
mov edi, dword [ebp + 0xc]
test ecx, ecx
mov dword [esp + 0x320], 0
jle 0x4a1ff9
fld qword [esp + 0x78]
fld qword [esp + 0x70]
fld qword [esp + 0x68]
fld qword [esp + 0x60]
fld qword [esp + 0x58]
fld qword [esp + 0x50]
mov edx, ebx
lea eax, [edi + 8]
sub edx, edi
fadd dword [esi]
fld dword [esi + 4]
faddp st(2)
fld dword [edx + eax]
faddp st(3)
fld dword [eax - 8]
faddp st(4)
fld dword [eax - 4]
faddp st(5)
fld dword [eax]
add esi, 0xc
add eax, 0xc
dec ecx
faddp st(6)
jne 0x4a1fbb
fstp qword [esp + 0x50]
mov edi, dword [ebp + 0xc]
fstp qword [esp + 0x58]
fstp qword [esp + 0x60]
fstp qword [esp + 0x68]
fstp qword [esp + 0x70]
fstp qword [esp + 0x78]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00429a10
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0x74]
push esi
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00429a10
mov edx, dword [esi]
add esp, 0x18
mov ecx, ebx
test edx, edx
mov dword [esp + 0x18], ecx
jle 0x4a2297
lea eax, [edi + 4]
sub ebx, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edx
jmp 0x4a2051
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
fld dword [eax - 4]
fsub qword [esp + 0x68]
fst qword [esp + 0x88]
fld dword [eax]
fsub qword [esp + 0x70]
fst qword [esp + 0xc]
fstp qword [esp + 0x90]
fld dword [eax + 4]
fsub qword [esp + 0x78]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], esi
fst qword [esp + 0x98]
fld st(1)
fchs
fst qword [esp + 0x44]
fstp qword [esp + 0xa0]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
fld st(0)
fchs
fst qword [esp + 0x1c]
fstp qword [esp + 0xb0]
fld qword [esp + 0xc]
fchs
fst qword [esp + 0xc]
fstp qword [esp + 0xc0]
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x1c]
fstp qword [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov esi, dword [esp + 0x20]
fstp qword [esp + 0xf0]
fld dword [ecx]
fsub qword [esp + 0x50]
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0xe4], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], esi
fst qword [esp + 0x108]
fld dword [eax + ebx]
fsub qword [esp + 0x58]
xor ebx, ebx
fstp qword [esp + 0xc]
fld dword [ecx + 8]
fsub qword [esp + 0x60]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0xc]
fst qword [esp + 0x118]
fld st(1)
fchs
fst qword [esp + 0x44]
fstp qword [esp + 0x120]
mov dword [esp + 0x168], edx
mov edx, dword [esp + 0x48]
fst qword [esp + 0x130]
fld qword [esp + 0xc]
fchs
fst qword [esp + 0x138]
fstp qword [esp + 0x140]
mov dword [esp + 0x174], edx
fchs
fst qword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
fstp qword [esp + 0x148]
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x10]
fstp qword [esp + 0x158]
mov dword [esp + 0x164], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ecx
lea edi, [esp + 0x100]
lea edx, [esp + ebx + 0x298]
mov dword [esp + 0xc], 4
mov dword [edx], 0
mov dword [edx + 4], 0
fld qword [edx]
lea eax, [esp + ebx + 0x80]
mov ecx, edi
mov esi, 4
fld qword [eax]
fmul qword [ecx]
add eax, 8
add ecx, 0x20
dec esi
faddp st(1)
jne 0x4a2204
fstp qword [edx]
mov eax, dword [esp + 0xc]
add edx, 8
add edi, 8
dec eax
mov dword [esp + 0xc], eax
jne 0x4a21e7
add ebx, 0x20
cmp ebx, 0x80
jl 0x4a21d1
xor eax, eax
mov ecx, 4
fld qword [esp + eax + 0x198]
fadd qword [esp + eax + 0x298]
add eax, 8
dec ecx
fstp qword [esp + eax + 0x210]
jne 0x4a2238
cmp eax, 0x80
jl 0x4a2233
mov edx, dword [esp + 0x18]
mov ecx, 0x20
lea esi, [esp + 0x218]
lea edi, [esp + 0x198]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov eax, 0xc
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], eax
jne 0x4a2045
xor eax, eax
push 0x40
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
lea ecx, [esp + 0x19c]
push edi
push 4
push ecx
call fcn.004a4cc0
mov edx, dword [esp + 0x1a8]
mov eax, dword [esp + 0x1ac]
fld qword [esp + 0x1a8]
add esp, 0x10
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor esi, esi
mov edx, 1
lea ecx, [esp + 0x1c0]
fadd qword [ecx]
fld qword [esp + 0x3c]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x4a2312
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
inc edx
add ecx, 0x28
cmp edx, 4
jl 0x4a22f4
fstp st(0)
lea ecx, [esp + 0x1c]
lea eax, [edi + esi*4]
mov edx, 4
mov esi, dword [eax]
add eax, 0x10
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x4a2329
push edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [ebp + 0x14]
add esp, 4
mov ecx, 0x10
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, esi
mov ecx, 4
mov dword [eax], 0x3f800000
add eax, 0x14
dec ecx
jne 0x4a2354
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fstp dword [esp + 0x18]
fld st(0)
fadd st(2)
fsub dword [esp + 0x14]
fsub dword [esp + 0x18]
fstp dword [esi]
fxch st(1)
fsub st(1)
fxch st(1)
fstp st(0)
fld st(0)
fadd dword [esp + 0x14]
fsub dword [esp + 0x18]
fstp dword [esi + 0x14]
fsub dword [esp + 0x14]
fadd dword [esp + 0x18]
fstp dword [esi + 0x28]
fld dword [esp + 0x28]
fmul dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul dword [esp + 0x20]
fld st(0)
fadd st(2)
fadd st(0), st(0)
fstp dword [esi + 4]
fsub st(1)
fadd st(0), st(0)
fstp dword [esi + 0x10]
fstp st(0)
fld dword [esp + 0x28]
fmul dword [esp + 0x20]
fld dword [esp + 0x24]
fmul dword [esp + 0x1c]
fld st(1)
fsub st(1)
fadd st(0), st(0)
fstp dword [esi + 8]
fadd st(1)
fadd st(0), st(0)
fstp dword [esi + 0x20]
fstp st(0)
fld dword [esp + 0x20]
fmul dword [esp + 0x1c]
fld dword [esp + 0x28]
fmul dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
fld st(0)
fadd st(2)
fadd st(0), st(0)
fstp dword [esi + 0x18]
fsub st(1)
fadd st(0), st(0)
fstp dword [esi + 0x24]
fstp st(0)
lea ecx, [esp + 0x50]
mov bl, 1
lea edx, [esp + 0x180]
push ecx
mov byte [esp + 0x324], bl
push edx
lea ecx, [esp + 0x24]
call fcn.00429cc0
mov edi, eax
lea eax, [esp + 0x80]
push 4
push eax
call fcn.0041a770
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
add esp, 8
mov dword [esp + 0xf0], edx
lea ecx, [esp + 0x68]
lea edx, [esp + 0x180]
push ecx
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0xfc], eax
call fcn.00429cc0
lea ecx, [esp + 0x218]
mov byte [esp + 0x320], 2
push ecx
push eax
call fcn.0042a1f0
lea edx, [esp + 0x108]
lea eax, [esp + 0x58]
push edx
push eax
mov byte [esp + 0x330], bl
call fcn.0042a1f0
lea ecx, [esp + 0x2a8]
lea edx, [esp + 0x228]
push ecx
push 4
push 4
push esi
push edx
call fcn.0042a250
lea eax, [esp + 0x23c]
lea ecx, [esp + 0x2bc]
push eax
push 4
push 4
lea edx, [esp + 0xb0]
push ecx
push edx
call fcn.00405b20
push esi
push 4
lea eax, [esp + 0x140]
push 4
lea ecx, [esp + 0x25c]
push eax
push ecx
call fcn.00405bd0
mov edi, dword [ebp + 0x18]
add esp, 0x4c
mov ecx, edi
mov eax, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0xc], 4
mov edx, 4
mov ebx, dword [eax]
add eax, 4
mov dword [ecx], ebx
add ecx, 0x10
dec edx
jne 0x4a256f
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
add ecx, 4
dec edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0xc], edx
jne 0x4a256a
xor eax, eax
push fcn.004011f0
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x2c], eax
push 2
fld dword [esi + 0x34]
fmul dword [esi + 4]
fld dword [esi + 0x30]
fmul dword [esi]
lea edx, [esp + 0x58]
push 0x18
push edx
mov dword [esp + 0x330], 0xffffffff
faddp st(1)
fld dword [esi + 0x38]
fmul dword [esi + 8]
faddp st(1)
fchs
fstp dword [edi + 0x30]
fld dword [esi + 0x14]
fmul dword [esi + 0x34]
fld dword [esi + 0x30]
fmul dword [esi + 0x10]
faddp st(1)
fld dword [esi + 0x38]
fmul dword [esi + 0x18]
faddp st(1)
fchs
fstp dword [edi + 0x34]
fld dword [esi + 0x28]
fmul dword [esi + 0x38]
fld dword [esi + 0x24]
fmul dword [esi + 0x34]
faddp st(1)
fld dword [esi + 0x30]
fmul dword [esi + 0x20]
faddp st(1)
fchs
fstp dword [edi + 0x38]
call fcn.004ce690
mov ecx, dword [esp + 0x318]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret