Function at 0x100051d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10038cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x24], 0x1003cc2c
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x68], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov eax, dword [eax + 8]
cmp eax, esi
jle 0x100054b5
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
mov edx, dword [ecx + 4]
mov edi, dword [edx + eax*4]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x20], edi
mov ecx, dword [edi + 0x2c]
cmp ecx, eax
jne 0x10005413
mov ecx, edi
call fcn.100069a0
test al, al
je 0x1000546d
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x30]
inc edx
cmp eax, 0xffffffff
mov dword [esp + 0x14], edx
je 0x10005404
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x1000528f
mov esi, ecx
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x2c]
call fcn.10013b90
mov edx, dword [esp + 0x28]
mov dword [edx + esi*4], edi
xor esi, esi
jmp 0x10005413
jle 0x100053f2
lea esi, [eax + 1]
mov eax, dword [esp + 0x28]
test esi, esi
mov dword [esp + 0x18], esi
jne 0x100052ce
test eax, eax
je 0x100052b7
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
xor eax, eax
mov dword [esp + 0x28], eax
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x30]
mov dword [eax + ecx*4], edi
jmp 0x10005413
test eax, eax
jne 0x10005306
lea eax, [esi*4]
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x28], eax
push esi
push eax
call fcn.10014b30
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0x30]
xor esi, esi
mov dword [eax + ecx*4], edi
jmp 0x10005413
cmp esi, dword [esp + 0x30]
jg 0x1000534c
cmp ecx, esi
jge 0x10005333
mov edx, esi
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.10014b30
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0x30]
xor esi, esi
mov dword [eax + ecx*4], edi
jmp 0x10005413
jle 0x1000533b
sub ecx, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0x30]
xor esi, esi
mov dword [eax + ecx*4], edi
jmp 0x10005413
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10005377
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x1000536b
mov eax, 4
jmp 0x10005377
cmp eax, 0x400
jle 0x10005377
mov eax, 0x400
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x10005389
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x10]
lea eax, [edx*4]
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x1c], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.10014b30
mov ecx, dword [esp + 0x28]
push ecx
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov ecx, dword [edi + 0x30]
add esp, 4
xor esi, esi
mov dword [eax + ecx*4], edi
jmp 0x10005413
mov ecx, dword [esp + 0x28]
cmp dword [ecx + eax*4], esi
jne 0x10005482
mov dword [ecx + eax*4], edi
jmp 0x10005413
mov edx, dword [esp + 0x2c]
push edi
push edx
lea ecx, [esp + 0x2c]
call fcn.10015040
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
inc eax
mov edx, dword [ecx + 8]
mov dword [esp + 0xc], eax
cmp eax, edx
jl 0x10005227
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp eax, edx
je 0x100054b5
mov dword [esp + 0x24], 0x1003cc2c
mov dword [esp + 0x68], 3
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x10005457
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0xc], edi
mov dword [esp + 0x24], 0x1003cc2c
mov dword [esp + 0x68], 1
jmp 0x10005446
mov dword [esp + 0x24], 0x1003cc2c
cmp ecx, esi
mov dword [esp + 0x68], 2
je 0x10005457
push ecx
call sub.mfc42u.dll_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x24]
push eax
push ecx
push edi
call fcn.10005000
add esp, 0xc
cmp eax, 0xfffffffe
mov dword [esp + 0x18], eax
jne 0x100054ee
mov dword [esp + 0x24], 0x1003cc2c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 4
cmp eax, esi
jmp 0x100058b7
mov edx, dword [ebp + 0xc]
push eax
push edx
push edi
mov ecx, ebx
call fcn.10004e30
lea eax, [esp + 0x24]
push eax
push edi
call fcn.10004f40
add esp, 8
test al, al
jne 0x10005528
mov dword [esp + 0x24], 0x1003cc2c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 5
cmp eax, esi
jmp 0x100058b7
xor ecx, ecx
cmp edi, 0x205
sete cl
xor eax, eax
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x38], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0x1003cc18
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], 0x1003cc04
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x68], 7
cmp ecx, esi
mov word [ebx + 0x14], si
mov dword [esp + 0xc], esi
jle 0x10005706
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov esi, dword [edx + eax*4]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + edx*4 + 0x20]
test ecx, ecx
je 0x10005608
mov ax, word [ebx + 0x14]
mov cx, word [ecx + 0x14]
cmp ax, cx
jg 0x100055ae
mov eax, ecx
push 0
mov word [ebx + 0x14], ax
call fcn.1001e4d0
mov dword [ebx + 0x20], eax
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
add esp, 4
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x20], eax
push ecx
mov ecx, dword [edx + 0x18]
push ecx
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x10]
push ecx
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov eax, dword [eax]
push 2
mov edx, dword [esi + ecx*4 + 0x20]
mov ecx, dword [edx + 0x20]
push ecx
mov ecx, dword [esp + 0x48]
push 0
push 0
push 1
jmp 0x100056a4
fld dword [esi + 0x38]
fsub dword [esi + 0x3c]
fabs
fld dword [0x1003cb90]
fmul qword [0x1003cbf8]
fcompp
fnstsw ax
test ah, 1
je 0x1000562b
mov word [ebx + 0x14], 2
mov eax, 9
sub eax, edx
lea ecx, [esi + eax*4]
mov ax, word [ebx + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx]
mov cx, word [ecx + 0x14]
cmp ax, cx
jg 0x1000564a
mov eax, ecx
push 0
mov word [ebx + 0x14], ax
call fcn.1001e4d0
mov dword [ebx + 0x20], eax
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
add esp, 4
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
mov ecx, dword [edx + 0x18]
push ecx
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x10]
push ecx
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
fld dword [esi + 0x38]
mov edx, dword [ecx]
mov eax, dword [eax]
push 2
mov ecx, dword [edx + 0x20]
push ecx
mov ecx, dword [esp + 0x44]
sub esp, 8
fchs
fstp qword [esp]
push 1
call dword [eax + 0x28]
mov esi, eax
test esi, esi
jle 0x100056ca
mov edi, esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x4c]
lea eax, [edx + edx]
push eax
mov eax, dword [esp + 0x58]
push eax
call fcn.10014ee0
dec edi
jne 0x100056af
test esi, esi
je 0x100056e0
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.10015040
jmp 0x100056ed
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x100056ed
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x10005588
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ecx
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x38], edi
je 0x1000579a
xor esi, esi
cmp eax, edi
jle 0x10005736
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + esi*4]
cmp ecx, edi
je 0x10005731
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x1000571c
mov dword [esp + 0x4c], 0x1003cc04
mov eax, dword [esp + 0x50]
mov byte [esp + 0x68], 8
cmp eax, edi
je 0x10005754
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x1003c7d0
mov dword [esp + 0x38], 0x1003cc18
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x68], 9
cmp eax, edi
je 0x1000577b
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], 0x1003cc2c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 0xa
cmp eax, edi
jmp 0x100058b7
push edi
call fcn.1001e4d0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ebx + 0x20], eax
mov edx, dword [eax]
cmp ecx, 3
jle 0x100057c7
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, eax
call dword [edx + 0x3c]
jmp 0x100057d6
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, eax
call dword [edx + 0x40]
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x38], eax
lea eax, [edx + edx]
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
add ecx, ecx
mov edi, eax
mov edx, ecx
mov dword [ebx + 0x3c], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x1000582a
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x10005821
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x10005810
mov edi, dword [ebx + 0x38]
test edi, edi
jne 0x100058d9
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x10005842
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x100434f4
mov ecx, 0x10045388
mov dword [ebx + 0x20], 0
call fcn.10037df2
mov dword [esp + 0x4c], 0x1003cc04
mov eax, dword [esp + 0x50]
mov byte [esp + 0x68], 0xb
test eax, eax
je 0x10005876
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x1003c7d0
mov dword [esp + 0x38], 0x1003cc18
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x68], 0xc
test eax, eax
je 0x1000589d
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], 0x1003cc2c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 0xd
test eax, eax
je 0x100058c2
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esp + 0x4c], 0x1003cc04
mov eax, dword [esp + 0x50]
mov byte [esp + 0x68], 0xe
test eax, eax
je 0x100058f7
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x1003c7d0
mov dword [esp + 0x38], 0x1003cc18
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x68], 0xf
test eax, eax
je 0x1000591e
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], 0x1003cc2c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 0x10
test eax, eax
je 0x10005943
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc