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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8769
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x30], ebx
call fcn.0053a440
lea ecx, [esp + 0x60]
call fcn.005a9830
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x60]
push ecx
push edx
push esi
push edi
mov ecx, ebx
mov dword [esp + 0x3b0], 0
call fcn.0052de90
xor eax, eax
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov esi, dword [edi + 8]
mov byte [esp + 0x3a0], 1
cmp esi, eax
jne 0x52e204
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
jmp 0x52e227
lea eax, [esi*4]
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x50], eax
push esi
push eax
call fcn.005463a0
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov edx, dword [ebx + 0x28]
xor ecx, ecx
test edx, edx
jle 0x52e247
mov eax, dword [ebx + 0x24]
add eax, 4
mov si, word [eax]
inc ecx
add eax, 0x2d8
cmp ecx, edx
mov dword [esp + 0x14], esi
jl 0x52e236
mov eax, dword [edi + 8]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x20], esi
test eax, eax
jle 0x52e2b6
mov ecx, dword [esp + 0x20]
lea edi, [ecx + 1]
cmp edi, eax
mov dword [esp + 0x28], edi
jge 0x52e2a5
mov edx, dword [esp + 0x20]
push edi
push edx
lea ecx, [esp + 0x68]
call fcn.005a98e0
push esi
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], eax
call fcn.005a98e0
mov ecx, dword [esp + 0x14]
fld qword [ecx]
fcomp qword [eax]
fnstsw ax
test ah, 1
je 0x52e298
mov ebx, dword [esp + 0x20]
mov esi, edi
mov edx, dword [ebp + 0xc]
inc edi
cmp edi, dword [edx + 8]
jl 0x52e265
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
mov eax, dword [eax + 8]
cmp edi, eax
jl 0x52e256
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + 4]
mov ecx, dword [edi + ebx*4]
mov edx, dword [edi + esi*4]
fld qword [ecx + 0x30]
fld qword [edx + 0x30]
fcompp
fnstsw ax
test ah, 1
je 0x52e2d3
fld qword [ecx + 0x30]
jmp 0x52e2d6
fld qword [edx + 0x30]
fld qword [0x5e2858]
fsub st(1)
fmul qword [0x5e7aa0]
fadd qword [0x5f02a8]
fstp qword [esp + 0x14]
fstp st(0)
call fcn.0050b080
mov ecx, dword [edi + esi*4]
fstp qword [esp + 0x2c]
call fcn.0050b080
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x52e317
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + ebx*4]
jmp 0x52e320
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + esi*4]
call fcn.0050b080
fmul qword [esp + 0x14]
push esi
push ebx
lea ecx, [esp + 0x68]
fstp qword [esp + 0x34]
call fcn.005a98e0
fld qword [esp + 0x2c]
fcomp qword [eax]
fnstsw ax
test ah, 1
jne 0x52e997
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push esi
mov dword [edx + ebx*4], 1
push ebx
lea ecx, [esp + 0x68]
mov dword [edx + esi*4], 1
call fcn.005a98e0
fld qword [eax]
fmul qword [0x5f0820]
mov edi, dword [ebp + 0xc]
fsubr qword [esp + 0x2c]
mov edx, dword [edi + 4]
fstp qword [esp + 0x2c]
mov ecx, dword [edx + ebx*4]
call fcn.0050b080
fstp qword [esp + 0x14]
push esi
push ebx
lea ecx, [esp + 0x68]
call fcn.005a98e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
call fcn.0050b080
fstp qword [esp + 0x14]
push ebx
push esi
lea ecx, [esp + 0x68]
call fcn.005a98e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebx, dword [ebp + 0xc]
xor edi, edi
xor esi, esi
mov dword [esp + 0x20], edi
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], esi
cmp eax, edi
jle 0x52e473
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
jne 0x52e460
xor esi, esi
test eax, eax
jle 0x52e45c
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
cmp dword [ecx], 0
je 0x52e449
push esi
push edi
lea ecx, [esp + 0x68]
call fcn.005a98e0
mov edx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x68]
call fcn.005a98e0
fld qword [ebx]
fcomp qword [eax]
fnstsw ax
test ah, 1
je 0x52e446
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 8]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x34], ecx
jl 0x52e40a
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
inc edi
add edx, 4
cmp edi, eax
mov dword [esp + 0x14], edx
jl 0x52e3f3
mov ecx, dword [esp + 0x20]
push ecx
push esi
lea ecx, [esp + 0x68]
call fcn.005a98e0
fld qword [eax]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x52e4be
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
push eax
push esi
lea ecx, [esp + 0x68]
mov dword [edx + esi*4], 1
call fcn.005a98e0
fld qword [eax]
fmul qword [0x5f0820]
fsubr qword [esp + 0x2c]
fstp qword [esp + 0x2c]
jmp 0x52e3d1
xor eax, eax
mov byte [esp + 0x13], 1
mov dword [esp + 0x38], 0x5f07e0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x54]
xor esi, esi
test ecx, ecx
mov byte [esp + 0x3a0], 2
jle 0x52e5ac
mov ecx, dword [esp + 0x50]
cmp dword [ecx + esi*4], 0
je 0x52e59f
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
inc eax
push 0xffffffffffffffff
mov ecx, dword [edx + 8]
push eax
mov edi, dword [ecx + esi*4]
lea ecx, [esp + 0x40]
call fcn.0046d900
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push 1
mov dword [edx + eax*4], edi
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + esi*4]
call fcn.0050c910
test al, al
jne 0x52e53c
mov byte [esp + 0x13], al
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
jle 0x52e59b
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
call fcn.0050b080
fstp qword [esp + 0x2c]
push edi
push esi
lea ecx, [esp + 0x68]
call fcn.005a98e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
call fcn.0050b080
fstp qword [esp + 0x2c]
push esi
push edi
lea ecx, [esp + 0x68]
call fcn.005a98e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
inc edi
mov dword [eax + 4], edx
mov eax, dword [ebx + 8]
cmp edi, eax
jl 0x52e545
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
inc esi
cmp esi, ecx
jl 0x52e4f3
push 0x170
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x3a0], 3
je 0x52e5d4
mov ecx, eax
call fcn.005a09a0
mov esi, eax
jmp 0x52e5d6
xor esi, esi
lea eax, [esp + 0x38]
push esi
push eax
mov byte [esp + 0x3a8], 2
call fcn.00529f40
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [esp + 0x34], edi
jne 0x52e823
fld qword [esi + 0x40]
fadd qword [esi + 0x30]
sub esp, 8
mov edx, dword [esi]
sub esp, 8
mov ecx, esi
fmul qword [0x5e3e20]
fstp qword [esp + 8]
fld qword [esi + 0x38]
fadd qword [esi + 0x28]
fmul qword [0x5e3e20]
fstp qword [esp]
call dword [edx + 0x18]
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
lea ecx, [edi + 0xe0]
push ecx
lea ecx, [esi + 0xe0]
call fcn.004b7e20
mov edx, dword [edi + 0xd8]
mov edi, dword [esp + 0x24]
mov dword [esi + 0xd8], edx
push 0xffffffffffffffff
mov eax, dword [edi + 0xc]
add edi, 4
mov dword [esi + 0xd4], eax
mov byte [esi + 0xd0], 1
mov eax, dword [edi + 8]
mov ecx, edi
mov dword [esp + 0x18], eax
inc eax
push eax
call fcn.0046d900
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push fcn.0042bd50
push fcn.004b6ca0
push 0x10
lea edx, [esp + 0x15c]
push 0x20
push edx
mov dword [eax + ecx*4], esi
call fcn.005c1f9f
push esi
lea ecx, [esp + 0xc4]
mov byte [esp + 0x3a4], 4
call fcn.0059f2b0
mov eax, dword [esp + 0x40]
test eax, eax
mov word [esp + 0xc6], ax
jle 0x52e6eb
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0xcc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
add ecx, 4
add edx, 2
mov ax, word [eax + 0xd8]
mov word [edx - 2], ax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x52e6cd
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xc0]
lea eax, [ecx + 0x20]
push eax
push edx
push 0
push esi
mov dword [esp + 0x38], eax
call fcn.0059f5d0
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea eax, [esp + 0x38]
push eax
push esi
push 0
call fcn.0052e9f0
mov al, byte [esp + 0x13]
test al, al
je 0x52e800
lea ecx, [esp + 0x70]
call fcn.004ccd50
push 1
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x3a8], 5
call fcn.004b7b80
push 0x170
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x3a0], 6
je 0x52e77b
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x70]
mov ecx, dword [ecx + 0xc]
push ecx
push edx
push esi
mov ecx, eax
call fcn.005a0c20
mov esi, eax
jmp 0x52e77d
xor esi, esi
mov eax, dword [edi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
inc eax
push eax
mov ecx, edi
mov byte [esp + 0x3a8], 5
call fcn.0046d900
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
mov dword [eax + ecx*4], esi
mov ebx, dword [ebx + 8]
mov ecx, dword [esp + 0x24]
push edx
push esi
push ebx
call fcn.0052e9f0
mov eax, 2
lea ecx, [esp + 0xc0]
mov word [esp + 0xc8], ax
mov word [esp + 0xec], ax
mov eax, dword [esp + 0x28]
mov word [esp + 0xc2], 1
push eax
push ecx
mov dword [esp + 0x118], esi
call fcn.0059dea0
add esp, 8
lea ecx, [esp + 0x70]
mov byte [esp + 0x3a0], 4
call fcn.0042bd50
push fcn.0042bd50
push 0x10
lea edx, [esp + 0x158]
push 0x20
push edx
mov byte [esp + 0x3b0], 2
call fcn.005c2021
jmp 0x52e95e
cmp edi, 0xfffffffe
je 0x52e95e
test esi, esi
je 0x52e839
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x38]
mov edi, dword [ecx + edi*4]
push edx
push edi
push 0
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.0052e9f0
mov al, byte [esp + 0x13]
mov ebx, dword [ebx + 8]
test al, al
je 0x52e880
mov ecx, dword [edi + 0xd8]
mov edx, dword [esi + 8]
lea eax, [esp + 0x38]
add ecx, ebx
push eax
mov eax, dword [edx + ecx*4]
mov ecx, esi
push eax
push ebx
call fcn.0052e9f0
add ebx, ebx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x52e95e
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add eax, dword [ecx + 0x24]
cmp word [eax + 0xa], 1
jne 0x52e938
movsx edx, word [eax + 0xc]
cmp edx, dword [edi + 0xd8]
jne 0x52e938
movsx edx, word [eax + 8]
xor ecx, ecx
test edx, edx
jle 0x52e8e0
lea esi, [eax + 0x4c]
mov edi, dword [esi]
cmp dword [edi + 0xd4], ebx
jge 0x52e8dc
inc ecx
add esi, 4
cmp ecx, edx
jl 0x52e8ca
mov edi, dword [esp + 0x28]
cmp ecx, edx
jne 0x52e938
mov cx, word [esp + 0x40]
mov word [eax + 6], cx
mov edx, dword [esp + 0x40]
xor ecx, ecx
test edx, edx
jle 0x52e919
lea edx, [eax + 0xc]
mov esi, dword [esp + 0x3c]
inc ecx
add edx, 2
mov esi, dword [esi + ecx*4 - 4]
mov si, word [esi + 0xd8]
mov word [edx - 2], si
mov esi, dword [esp + 0x40]
cmp ecx, esi
jl 0x52e8fa
mov ecx, dword [esp + 0x34]
mov dx, word [eax + ecx*2 + 0xc]
mov word [eax + 0xc], dx
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
mov dx, word [edx + 0xd8]
mov word [eax + ecx*2 + 0xc], dx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
inc eax
mov edx, dword [ecx + 0x28]
add esi, 0x2d8
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
jl 0x52e89b
mov dword [esp + 0x38], 0x5f07e0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x3a0], 7
test eax, eax
je 0x52e97f
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x3a0], 1
mov dword [esp + 0x38], 0x5e262c
jmp 0x52e247
mov ecx, dword [esp + 0x24]
call fcn.005a16c0
mov dword [esp + 0x4c], 0x5e27fc
mov eax, dword [esp + 0x50]
mov byte [esp + 0x3a0], 8
test eax, eax
je 0x52e9c1
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x3a0], 0xffffffff
call fcn.005a9870
mov ecx, dword [esp + 0x398]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10