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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x518d21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.004afe80
lea ecx, [esp + 0x60]
call fcn.004afeb0
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x104], ebx
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov eax, dword [esi]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push ecx
mov ecx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, edi
call dword [edx + 4]
test eax, eax
jne 0x4af875
lea edx, [esp + 0xc]
push 0x527608
push edx
mov dword [esp + 0x14], 0x538468
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 1
jle 0x4afa33
lea ecx, [esp + 0x70]
call fcn.004afe80
lea ecx, [esp + 0xa4]
call fcn.004afeb0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x100], 1
call fcn.004afe80
lea ecx, [esp + 0xe8]
call fcn.004afeb0
lea ecx, [esi + 0x88]
lea edx, [esp + 0xb4]
push ecx
push esi
lea eax, [esp + 0x78]
push edx
push eax
mov byte [esp + 0x110], 2
call fcn.004acac0
mov edx, dword [ebp + 0x10]
mov eax, 1
add esp, 0x10
xor ecx, ecx
cmp dword [edx + 4], eax
mov dword [esp + 0xc], eax
jle 0x4af9e2
jmp 0x4af8f9
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x100]
inc ebx
mov edx, dword [eax + ebx*4]
lea eax, [eax + ebx*4]
test edx, edx
jne 0x4af915
mov edx, dword [eax + 4]
add eax, 4
inc ebx
test edx, edx
je 0x4af90a
mov edx, dword [esi + 0x78]
inc ecx
mov dword [esp + 0x20], ecx
lea eax, [edx + ecx*4]
mov edx, dword [edx + ecx*4]
test edx, edx
jne 0x4af936
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
je 0x4af927
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 0xf0]
lea edi, [ebx*8]
mov eax, edi
add eax, edx
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov edx, eax
mov eax, dword [esp + 0x24]
push edx
push eax
push ecx
lea ecx, [esi + 0x44]
push ebx
lea edx, [esi + 0xcc]
push ecx
lea eax, [esp + 0xc8]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004acdf0
mov ecx, dword [esi + 0xf0]
push 0
add edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x60]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [edx + 4]
test eax, eax
je 0x4afa92
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
inc eax
mov edx, dword [ecx + 4]
mov dword [esp + 0xc], eax
cmp eax, edx
jl 0x4af8f5
mov edi, dword [ebp + 8]
push 1
lea ecx, [esp + 0xec]
mov byte [esp + 0x104], 3
call fcn.0047d150
lea ecx, [esp + 0xb4]
mov byte [esp + 0x100], 1
call fcn.0047c870
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x104], 4
call fcn.0047d150
lea ecx, [esp + 0x70]
mov byte [esp + 0x100], 0
call fcn.0047c870
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x68]
push 0
mov edx, dword [edi]
fld qword [ecx + eax*8 - 8]
mov eax, dword [esi + 0x88]
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0xbc]
push eax
mov eax, dword [esi + 0xac]
push eax
mov eax, dword [esi + 0x9c]
push ecx
mov ecx, dword [esi + 0x8c]
push eax
push ecx
mov ecx, edi
call dword [edx + 4]
test eax, eax
jne 0x4afaa9
lea edx, [esp + 0xc]
push 0x527608
push edx
mov dword [esp + 0x14], 0x538468
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0xc]
push 0x527608
push edx
mov dword [esp + 0x14], 0x538468
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0xcc]
push 1
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebx]
mov dword [esp + 0x1c], edx
mov edx, dword [edi]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x100]
push eax
mov eax, dword [esi + 0xf0]
push eax
mov eax, dword [esi + 0xe0]
push ecx
mov ecx, dword [esi + 0xd0]
push eax
push ecx
mov ecx, edi
call dword [edx + 4]
test eax, eax
jne 0x4afb0c
lea edx, [esp + 0xc]
push 0x527608
push edx
mov dword [esp + 0x14], 0x538468
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 0x10]
cmp dword [eax], 1
jle 0x4afd53
lea ecx, [esp + 0xb4]
call fcn.0047c7c0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x100], 5
call fcn.004afeb0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x100], 0
call fcn.004afeb0
lea ecx, [esp + 0x70]
mov byte [esp + 0x100], 6
call fcn.0047c7c0
lea ecx, [esp + 0x94]
mov byte [esp + 0x100], 7
call fcn.004afeb0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x100], 6
call fcn.004afeb0
lea eax, [esi + 0x44]
lea ecx, [esp + 0x70]
push eax
push ebx
lea edx, [esp + 0xbc]
push ecx
push edx
mov byte [esp + 0x110], 8
call fcn.004acac0
mov eax, dword [ebp + 0x10]
add esp, 0x10
xor ebx, ebx
xor ecx, ecx
mov edx, dword [eax]
mov dword [esp + 0xc], 1
cmp edx, 1
jle 0x4afca6
jmp 0x4afbc7
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x34]
inc ebx
lea eax, [edx + ebx*4]
mov edx, dword [edx + ebx*4]
test edx, edx
jne 0x4afbe0
mov edx, dword [eax + 4]
add eax, 4
inc ebx
test edx, edx
je 0x4afbd5
mov eax, dword [esi + 0xbc]
inc ecx
mov dword [esp + 0x20], ecx
mov edx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
test edx, edx
jne 0x4afc04
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
je 0x4afbf5
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x24]
lea edi, [ebx*8]
mov edx, edi
add edx, eax
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov edx, dword [edx + 4]
mov dword [esp + 0x18], edx
mov eax, edx
mov edx, dword [esp + 0x14]
push eax
push edx
push ecx
lea eax, [esi + 0x88]
push ebx
push eax
lea eax, [esp + 0x84]
push esi
lea ecx, [esp + 0xcc]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004acdf0
mov ecx, dword [esi + 0x24]
push 1
add edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x60]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [edx + 4]
test eax, eax
je 0x4afda2
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
inc eax
mov edx, dword [ecx]
mov dword [esp + 0xc], eax
cmp eax, edx
jl 0x4afbc3
mov edi, dword [ebp + 8]
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x104], 9
call fcn.0047d150
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x104], 0xa
call fcn.0047d150
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x104], 0xb
call fcn.0047d150
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x104], 6
call fcn.0047d150
push 1
lea ecx, [esp + 0xec]
mov byte [esp + 0x104], 0xc
call fcn.0047d150
push 1
lea ecx, [esp + 0xdc]
mov byte [esp + 0x104], 0xd
call fcn.0047d150
push 1
lea ecx, [esp + 0xcc]
mov byte [esp + 0x104], 0xe
call fcn.0047d150
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0x104], 0
call fcn.0047d150
mov eax, dword [esi]
mov ecx, dword [esi + 0x24]
push 1
mov edx, dword [edi]
fld qword [ecx + eax*8 - 8]
mov eax, dword [esi + 0x44]
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x78]
push eax
mov eax, dword [esi + 0x68]
push eax
mov eax, dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 0x48]
push eax
push ecx
mov ecx, edi
call dword [edx + 4]
test eax, eax
jne 0x4afdb9
lea edx, [esp + 0xc]
push 0x527608
push edx
mov dword [esp + 0x14], 0x538468
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0xc]
push 0x527608
push edx
mov dword [esp + 0x14], 0x538468
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x60]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x100], 0xf
je 0x4afde9
cmp dword [esp + 0x6c], esi
je 0x4afddd
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x100], 0x10
cmp eax, esi
je 0x4afe17
cmp dword [esp + 0x5c], esi
je 0x4afe0b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x100], 0x11
cmp eax, esi
je 0x4afe45
cmp dword [esp + 0x4c], esi
je 0x4afe39
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x100], 0xffffffff
cmp eax, esi
je 0x4afe67
cmp dword [esp + 0x3c], esi
je 0x4afe67
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret