Function at 0x10005070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10027164
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10031c30]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov edi, dword [esp + 0x6c]
push 0
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push 0
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x28]
push 0
mov ecx, edi
call edx
mov eax, dword [ebp + 0x18]
lea esi, [eax - 1]
xor ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebx
test esi, esi
jl 0x1000525e
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100050fc
mov eax, dword [eax + 8]
push eax
push 0
push 0x627
call ecx
test eax, eax
jne 0x1000538f
test ebx, ebx
jl 0x100053de
cmp ebx, dword [ebp + 0x18]
jge 0x100053de
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x1000524b
call fcn.10004880
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push ebp
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], edx
call fcn.10004ac0
mov eax, dword [esp + 0x68]
lea edx, [esi + 0x60]
push edx
push ebp
mov ecx, esi
call fcn.100044e0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.100062d0
mov esi, eax
mov ebx, 1
lea ecx, [ebx + 7]
lea edi, [esp + 0x20]
mov dword [esp + 0x5c], ebx
call fcn.100031f0
mov byte [esp + 0x5c], 2
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
lea edi, [ebp + 0x38]
push edi
call fcn.10002600
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100051af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100051d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp + 0x40]
push ebp
mov ebx, edi
call fcn.10005490
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x64], edx
fild dword [esp + 0x64]
mov ecx, dword [ebp + 4]
fnstcw word [esp + 0x64]
fmul qword [0x1002c218]
movzx eax, word [esp + 0x64]
or eax, 0xc00
mov dword [esp + 0x34], eax
mov dl, 0x32
fidiv dword [esp + 0x2c]
fmul qword [0x1002c1f8]
fldcw word [esp + 0x34]
fistp dword [esp + 0x34]
mov al, byte [esp + 0x34]
sub dl, al
mov eax, dword [ecx + 4]
fldcw word [esp + 0x64]
mov byte [esp + 0x64], dl
test eax, eax
je 0x10005243
mov ecx, dword [ecx + 8]
push ecx
lea edx, [esp + 0x68]
push edx
push 0x5f4
call eax
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
jle 0x100050dd
mov esi, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
xor ebx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
test esi, esi
jl 0x100052bf
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10005294
mov edx, dword [eax + 8]
push edx
push 0
push 0x627
call ecx
test eax, eax
jne 0x100053e3
test ebx, ebx
jl 0x100053de
cmp ebx, dword [ebp + 0x18]
jge 0x100053de
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x100052ba
mov esi, eax
call fcn.100045f0
mov esi, dword [esp + 0x1c]
inc ebx
cmp ebx, esi
jle 0x10005275
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov ebx, eax
sub ebx, dword [esp + 0x34]
mov esi, edx
sbb esi, dword [esp + 0x38]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x28], esi
call eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x30], edx
cdq
push ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x38]
push edx
push esi
push ebx
mov esi, edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
call fcn.100047d0
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push 4
lea ecx, [esp + 0x70]
push ecx
mov ecx, edi
mov dword [esp + 0x74], 0x7064b50
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x40], eax
push 0x10
lea eax, [esp + 0x40]
mov dword [esp + 0x48], ecx
push eax
mov ecx, edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], 1
call edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x34]
cdq
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
push ebx
lea esi, [esp + 0x4c]
call fcn.10004700
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc
push 0xc
call fcn.100068e2
mov esi, eax
add esp, 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], 0
test esi, esi
je 0x100053c1
mov ecx, esi
call fcn.10006e0c
mov dword [esi], vtable.CSDFRMException.0
mov dword [esi + 8], 0x3ec
jmp 0x100053c3
xor esi, esi
push 0x1002ee78
lea eax, [esp + 0x70]
mov dword [esp + 0x60], 0xffffffff
push eax
mov dword [esp + 0x74], esi
call fcn.1001527b
call fcn.10006dc1
push 0xc
call fcn.100068e2
mov esi, eax
add esp, 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], 3
test esi, esi
je 0x10005415
mov ecx, esi
call fcn.10006e0c
mov dword [esi], vtable.CSDFRMException.0
mov dword [esi + 8], 0x3ec
jmp 0x10005417
xor esi, esi
push 0x1002ee78
lea ecx, [esp + 0x70]
mov dword [esp + 0x60], 0xffffffff
push ecx
mov dword [esp + 0x74], esi
call fcn.1001527b
int3