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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ded90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
fld qword [ebx + 0x10]
mov edi, ecx
lea edx, [esp + 0x40]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
fsub qword [edi + 0x290]
lea esi, [edi + 0x2a8]
push ecx
lea eax, [edi + 0x2b8]
push edx
push esi
push eax
fstp qword [ebx + 0x10]
fld qword [ebx + 0x18]
fsub qword [edi + 0x298]
mov ecx, ebx
fstp qword [ebx + 0x18]
call fcn.004b7060
sub esp, 8
mov ecx, ebx
fstp qword [esp]
call fcn.004b7040
sub esp, 8
fstp qword [esp]
call fcn.005994e0
add esp, 0x20
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
lea eax, [edi + 0x2b8]
push ecx
push eax
push esi
mov ecx, ebx
call fcn.004b7060
sub esp, 8
mov ecx, ebx
fstp qword [esp]
call fcn.004b7040
sub esp, 8
fstp qword [esp]
call fcn.005994e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x44]
add esp, 0x20
cmp ecx, eax
jl 0x59adcf
mov dword [esp + 0x24], eax
cmp dword [esp + 0x28], eax
jl 0x59add9
mov dword [esp + 0x28], eax
xor esi, esi
mov dword [esp + 0x4c], 0x5f1238
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
fld qword [ebx]
fmul qword [0x5e2850]
mov dword [esp + 0x80], esi
fadd qword [0x5e2790]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fmul qword [0x5e7a50]
fsubr qword [ebx]
fstp qword [esp + 0x2c]
fld qword [ebx + 8]
fmul qword [0x5e2850]
fadd qword [0x5e2790]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
cmp eax, ecx
fmul qword [0x5e7a50]
fsubr qword [ebx + 8]
fstp qword [esp + 0x1c]
jg 0x59afc9
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x14], eax
jg 0x59afb4
fild dword [esp + 0x10]
fstp qword [esp + 0x44]
fild dword [esp + 0x14]
fld qword [esp + 0x44]
fmul qword [edi + 0x2b8]
fld st(1)
fmul qword [edi + 0x2a8]
faddp st(1)
fadd qword [ebx]
fstp qword [esp + 0x60]
fld qword [esp + 0x44]
fmul qword [edi + 0x2c0]
fxch st(1)
fmul qword [edi + 0x2b0]
faddp st(1)
fadd qword [ebx + 8]
fstp qword [esp + 0x68]
fld qword [esp + 0x60]
fcomp qword [ebx + 0x10]
fnstsw ax
test ah, 0x41
je 0x59afa3
fld qword [esp + 0x60]
fcomp qword [ebx]
fnstsw ax
test ah, 1
jne 0x59afa3
fld qword [esp + 0x68]
fcomp qword [ebx + 0x18]
fnstsw ax
test ah, 0x41
je 0x59afa3
fld qword [esp + 0x68]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 1
jne 0x59afa3
fld qword [esp + 0x60]
fmul qword [0x5e2850]
fadd qword [0x5e2790]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fmul qword [0x5e7a50]
fadd qword [esp + 0x2c]
fstp qword [esp + 0x60]
fld qword [esp + 0x68]
fmul qword [0x5e2850]
fadd qword [0x5e2790]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
fild dword [esp + 0x38]
lea edx, [esi + 1]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x54]
fmul qword [0x5e7a50]
fadd qword [esp + 0x24]
fstp qword [esp + 0x70]
fld qword [esp + 0x68]
fsub qword [ebx]
fadd qword [eax + 0x290]
fld qword [esp + 0x70]
fsub qword [ebx + 8]
fadd qword [eax + 0x298]
fmulp st(1)
fstp qword [esp + 0x78]
call fcn.004e59b0
mov ecx, dword [esp + 0x50]
lea eax, [esi + esi*2]
lea esi, [esp + 0x60]
lea edi, [ecx + eax*8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x59ae7a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jle 0x59ae62
mov edx, dword [esp + 0x50]
mov ebx, dword [ebp + 0x10]
mov edi, esi
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], edi
je 0x59afe5
mov dword [ebx + 0x10], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x59affc
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 4], 0
xor ecx, ecx
cmp edi, esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
jg 0x59b0b7
cmp edi, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
jle 0x59b07b
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], edi
add eax, 0x10
mov dword [esp + 0x2c], eax
mov edi, eax
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, ebx
call fcn.0054a8d0
mov eax, dword [ebx + 4]
lea edx, [edi - 0x10]
shl esi, 4
add esi, eax
mov eax, dword [edx]
mov dword [esi], eax
mov ecx, dword [edx + 4]
mov dword [esi + 4], ecx
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov ecx, dword [edx + 0xc]
mov dword [esi + 0xc], ecx
fld qword [edi]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
jne 0x59b06d
fld qword [edi]
fstp qword [esp + 0x44]
mov eax, dword [esp + 0x38]
add edi, 0x18
dec eax
mov dword [esp + 0x38], eax
jne 0x59b029
mov dword [esp + 0x4c], 0x5f1238
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], 1
test eax, eax
je 0x59b09f
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
fld qword [esp + 0x44]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x18]
mov ax, word [edx]
cmp ax, cx
je 0x59b393
cmp ax, 2
je 0x59b393
cmp ax, 1
jne 0x59b1a0
mov eax, dword [esp + 0xc]
push 0x59ac70
push 0x18
push edi
push eax
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
cmp esi, edi
mov ecx, esi
jge 0x59b121
mov eax, dword [esp + 0xc]
lea edx, [esi + esi*2]
lea eax, [eax + edx*8]
mov dword [esp + 0x14], eax
mov edx, eax
jmp 0x59b10d
mov eax, dword [esp + 0x14]
fld qword [edx]
fcomp qword [eax - 0x18]
fnstsw ax
test ah, 0x41
je 0x59b121
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x59b109
mov eax, dword [esp + 0xc]
lea edx, [esi + esi*2]
dec ecx
fld qword [eax + edx*8 - 0x18]
lea eax, [eax + edx*8]
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], eax
fsub qword [edx]
mov edx, dword [esp + 0x18]
fadd qword [edx + 0x290]
mov edx, dword [ebp + 8]
fld qword [edx + 8]
fst qword [esp + 0x44]
js 0x59b17a
mov edx, dword [esp + 0xc]
lea eax, [ecx + ecx*2]
inc ecx
lea edx, [edx + eax*8 + 8]
fld qword [edx]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x59b16c
fstp st(0)
fld qword [edx]
sub edx, 0x18
dec ecx
jne 0x59b15b
fst qword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
fsub qword [ecx + 8]
mov ecx, dword [esp + 0x18]
fadd qword [ecx + 0x298]
add ecx, 0x2b8
fmulp st(1)
fld qword [esp + 0x44]
fsub qword [eax - 0x10]
fmul qword [ecx]
jmp 0x59b451
mov edx, dword [esp + 0xc]
push 0x59ac20
push 0x18
push edi
push edx
call dword [sym.imp.msvcrt.dll_qsort]
mov ecx, dword [esp + 0x1c]
lea eax, [edi + edi*2]
add esp, 0x10
cmp esi, edi
mov edx, dword [ecx + eax*8 - 8]
lea eax, [ecx + eax*8 - 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x48], eax
jge 0x59b303
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
lea ecx, [eax + eax*2]
lea esi, [edx + ecx*8]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], esi
mov ecx, 6
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x60]
fadd qword [0x5e7a50]
fstp qword [esp + 0x60]
fld qword [esp + 0x68]
fadd qword [0x5e7a50]
fstp qword [esp + 0x68]
xor edi, edi
test edx, edx
jl 0x59b24b
mov ecx, dword [esp + 0xc]
lea esi, [edx + 1]
fld qword [ecx]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x59b245
fld qword [ecx + 8]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x59b245
inc edi
add ecx, 0x18
dec esi
jne 0x59b229
cmp edi, dword [ebp + 0xc]
jge 0x59b26d
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
inc edx
add esi, 0x18
cmp edx, eax
mov dword [esp + 0x38], esi
jl 0x59b1f5
mov dword [esp + 0x10], edx
jmp 0x59b303
test edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
jl 0x59b303
mov edi, dword [esp + 0xc]
fld qword [edi]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x59b2da
fld qword [edi + 8]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x59b2da
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea eax, [esi + 1]
push eax
call fcn.0054a8d0
mov ecx, dword [ebx + 4]
shl esi, 4
add esi, ecx
mov ecx, edi
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov edx, dword [ecx + 8]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 8]
cmp eax, ecx
je 0x59b2f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add edi, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x59b285
jmp 0x59b303
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0xc]
fld qword [eax + edx*8 + 0x10]
fstp qword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x59b36f
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0x44], edx
jle 0x59b36f
mov edi, dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x38], ecx
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea edx, [esi + 1]
push edx
call fcn.0054a8d0
mov edx, dword [ebx + 4]
mov eax, edi
shl esi, 4
mov ecx, dword [eax]
add esi, edx
add edi, 0x18
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x38]
dec eax
mov dword [esi + 0xc], edx
mov dword [esp + 0x38], eax
jne 0x59b331
mov dword [esp + 0x4c], 0x5f1238
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], 2
test eax, eax
je 0x59b98c
jmp 0x59b983
mov eax, dword [esp + 0xc]
push 0x59acc0
push 0x18
push edi
push eax
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
cmp esi, edi
mov ecx, esi
jge 0x59b3da
mov eax, dword [esp + 0xc]
lea edx, [esi + esi*2]
lea eax, [eax + edx*8]
mov dword [esp + 0x14], eax
lea edx, [eax + 8]
jmp 0x59b3c6
mov eax, dword [esp + 0x14]
fld qword [edx]
fcomp qword [eax - 0x10]
fnstsw ax
test ah, 0x41
je 0x59b3da
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x59b3c2
mov eax, dword [esp + 0xc]
lea edx, [esi + esi*2]
test ecx, ecx
fld qword [eax + edx*8 - 0x10]
lea eax, [eax + edx*8]
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], eax
fsub qword [edx + 8]
mov edx, dword [esp + 0x18]
fadd qword [edx + 0x298]
mov edx, dword [ebp + 8]
fld qword [edx]
fst qword [esp + 0x44]
jl 0x59b433
mov edx, dword [esp + 0xc]
lea eax, [ecx + ecx*2]
inc ecx
lea edx, [edx + eax*8]
fld qword [edx]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x59b425
fstp st(0)
fld qword [edx]
sub edx, 0x18
dec ecx
jne 0x59b414
fst qword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
fsub qword [ecx]
mov ecx, dword [esp + 0x18]
fadd qword [ecx + 0x290]
fmulp st(1)
fld qword [esp + 0x44]
fsub qword [eax - 0x18]
fmul qword [ecx + 0x2b0]
fsubr st(1)
cmp esi, edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], esi
fstp qword [esp + 0x44]
jge 0x59b5c0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x38]
mov ecx, 6
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x70]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x59b594
fld qword [esp + 0x60]
fadd qword [0x5e7a50]
xor eax, eax
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x14], eax
test edx, edx
fstp qword [esp + 0x60]
fld qword [esp + 0x68]
fadd qword [0x5e7a50]
fstp qword [esp + 0x68]
jle 0x59b4fc
mov esi, dword [esp + 0xc]
fld qword [esi]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x59b4f0
fld qword [esi + 8]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x59b4f0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x14], eax
jne 0x59b4f0
mov edi, ecx
inc ecx
add esi, 0x18
cmp ecx, edx
jl 0x59b4c1
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x59b532
fstp st(0)
fld qword [esp + 0x70]
fld qword [esp + 0x70]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x59b594
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
jmp 0x59b594
jle 0x59b594
mov eax, dword [esp + 0x18]
lea ecx, [edi + edi*2]
fstp st(0)
cmp word [eax], 1
fld qword [esp + 0x70]
jne 0x59b55a
mov esi, dword [esp + 0xc]
fld qword [esp + 0x60]
fsub qword [esi + ecx*8]
fmul qword [eax + 0x2b0]
jmp 0x59b56d
mov esi, dword [esp + 0xc]
add eax, 0x2b8
fld qword [esp + 0x68]
fsub qword [esi + ecx*8 + 8]
fmul qword [eax]
fsubr qword [esp + 0x70]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x59b594
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
inc eax
add esi, 0x18
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], esi
jl 0x59b473
mov eax, dword [esp + 0x2c]
test eax, eax
fstp st(0)
jne 0x59b74d
jmp 0x59b5c2
fstp st(0)
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x59b968
mov ecx, dword [esp + 0xc]
mov edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov edi, ecx
mov dword [esp + 0x2c], edi
lea esi, [edi + 1]
test esi, esi
jne 0x59b613
test eax, eax
je 0x59b606
push eax
mov dword [esp + 0x3c], ecx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x59b70e
test eax, eax
jne 0x59b63a
mov eax, esi
shl eax, 4
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00505af0
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x59b70e
cmp esi, dword [ebx + 0xc]
jg 0x59b66b
cmp ecx, esi
jge 0x59b65b
mov edx, esi
sub edx, ecx
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.00505af0
mov dword [ebx + 8], esi
jmp 0x59b70e
jle 0x59b663
sub ecx, esi
mov dword [esp + 0x38], ecx
mov dword [ebx + 8], esi
jmp 0x59b70e
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x59b695
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x59b689
mov eax, 4
jmp 0x59b695
cmp eax, 0x400
jle 0x59b695
mov eax, 0x400
mov ecx, dword [ebx + 0xc]
add eax, ecx
cmp esi, eax
mov dword [esp + 0x38], eax
jl 0x59b6a6
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x38]
shl eax, 4
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x30]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x14], eax
sub edx, ecx
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.00505af0
mov eax, dword [ebx + 4]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x1c]
shl edi, 4
add edi, edx
mov edx, eax
add eax, 0x18
mov ecx, dword [edx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi], ecx
mov ecx, dword [edx + 4]
dec eax
mov dword [edi + 4], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 8]
mov dword [edi + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
jne 0x59b5db
jmp 0x59b968
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
lea edi, [esp + 0x60]
mov dword [esp + 0x14], 0
lea eax, [eax + eax*2]
lea esi, [ecx + eax*8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x60]
fadd qword [0x5e7a50]
fstp qword [esp + 0x60]
fld qword [esp + 0x68]
fadd qword [0x5e7a50]
fstp qword [esp + 0x68]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x59b968
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
jmp 0x59b7a4
mov ecx, dword [esp + 0x2c]
fld qword [ecx]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x59b948
fld qword [ecx + 8]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x59b948
mov ecx, dword [ebx + 8]
mov eax, ecx
mov dword [esp + 0x10], eax
inc eax
test eax, eax
jne 0x59b7fd
mov eax, dword [ebx + 4]
test eax, eax
je 0x59b7f0
push eax
mov dword [esp + 0x3c], ecx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x59b91a
mov edx, dword [ebx + 4]
test edx, edx
jne 0x59b82e
mov edx, dword [esp + 0x10]
lea esi, [edx + 1]
mov eax, esi
shl eax, 4
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00505af0
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x59b91a
mov esi, dword [ebx + 0xc]
cmp eax, esi
jg 0x59b879
cmp ecx, eax
jge 0x59b85b
mov eax, dword [esp + 0x10]
inc eax
sub eax, ecx
shl ecx, 4
add ecx, edx
push eax
push ecx
call fcn.00505af0
mov eax, dword [esp + 0x10]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
jmp 0x59b91e
jle 0x59b86a
mov edx, dword [esp + 0x10]
lea eax, [edx + 1]
sub ecx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x10]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
jmp 0x59b91e
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x59b8a3
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x59b897
mov eax, 4
jmp 0x59b8a3
cmp eax, 0x400
jle 0x59b8a3
mov eax, 0x400
mov ecx, dword [esp + 0x10]
add eax, esi
inc ecx
mov dword [esp + 0x38], eax
cmp ecx, eax
jl 0x59b8b6
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x38]
shl edx, 4
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x18], eax
sub edx, ecx
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.00505af0
mov eax, dword [ebx + 4]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
shl eax, 4
add eax, edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 8], eax
je 0x59b968
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
jl 0x59b7a0
mov dword [esp + 0x4c], 0x5f1238
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], 3
test eax, eax
je 0x59b98c
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0x78]
pop edi
fld qword [esp + 0x40]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc