Function at 0x405be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47cd55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov ebx, ecx
mov ecx, dword [esi + 0x18]
add eax, ecx
add ecx, 4
push edi
xor edi, edi
mov dword [esi + 0x18], ecx
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0xcc], edi
cmp eax, edi
mov dword [esp + 0x34], edi
jle 0x406011
lea eax, [esp + 0x60]
push eax
call fcn.00406090
mov byte [esp + 0xcc], 1
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 4]
mov edx, dword [ebx + 4]
push eax
push edx
push ebx
call fcn.0040bb50
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.0040bc00
mov dword [ebx + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0xcc], 0
lea eax, [esp + 0x60]
push eax
call fcn.00406110
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
mov ebx, dword [edx + 4]
mov edx, dword [esp + 0x28]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
mov eax, dword [eax]
add ebx, 8
mov dword [ebx], eax
test edx, edx
jne 0x405cb3
xor ecx, ecx
jmp 0x405cbc
mov ecx, dword [esp + 0x30]
sub ecx, edx
sar ecx, 2
mov edx, dword [esp + 0x2c]
mov edi, edx
sub edi, dword [esp + 0x28]
sar edi, 2
cmp edi, ecx
jae 0x405cd8
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x2c], edx
jmp 0x405ce4
push ebx
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0040d040
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + eax]
add eax, 4
add ecx, eax
mov dword [esp + 0x18], edx
mov dword [esi + 0x18], eax
jne 0x405cff
xor eax, eax
jmp 0x405d0d
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405d04
sub eax, edi
push eax
lea edi, [ebx + 0x20]
push ecx
mov ecx, edi
call fcn.00414ad0
mov eax, dword [esp + 0x18]
add dword [esi + 0x18], eax
mov eax, dword [edi]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x405d3f
push edi
lea ecx, [ebx + 0x20]
call fcn.00414a00
mov eax, dword [ebx + 0x20]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00460ffb
push eax
call fcn.00413e60
add esp, 0xc
test edi, edi
jl 0x40607e
mov eax, dword [ebx + 0x20]
cmp edi, dword [eax - 8]
jg 0x40607e
mov dword [eax - 0xc], edi
mov edx, dword [ebx + 0x20]
mov byte [edi + edx], 0
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + ecx]
mov dword [ebx + 0x4c], edx
mov eax, dword [esi + 0x18]
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
fld dword [eax]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [ebx + 8]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ecx
inc ecx
mov dword [esi + 0x18], ecx
cmp byte [eax], 1
sete al
mov byte [ebx + 0x1c], al
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
fld dword [eax]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [ebx + 0x18]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
cmp dword [eax], 0
setne cl
mov byte [ebx + 0x10], cl
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
mov eax, dword [eax]
test eax, eax
jle 0x405f1b
mov dword [esp + 0x18], eax
xor eax, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
push edx
lea eax, [ebx + 0x24]
call fcn.00408d40
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
mov edi, dword [ebx + 0x2c]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
fld dword [eax]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [edi - 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ecx
add ecx, 4
mov dword [esi + 0x18], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
add eax, 0x7d0
lea ecx, [esp + 0x10]
call fcn.004128e0
mov eax, dword [eax]
mov dword [edi - 0x24], eax
mov dword [edi - 0x20], 0xffffffff
fild dword [eax + 0x38]
fstp dword [edi - 0x18]
fild dword [eax + 0x3c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [edi - 0x14]
fstp dword [esp + 0x10]
fld dword [edi - 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
fld dword [esp + 0x14]
call fcn.004761ea
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [edi - 0x10]
fld dword [edi - 0x14]
fld dword [edi - 0x18]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.00475d90
fstp dword [esp + 0x14]
sub dword [esp + 0x18], 1
fld dword [esp + 0x14]
fstp dword [edi - 0xc]
fldz
fst dword [edi - 8]
fstp dword [edi - 4]
jne 0x405e26
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x34]
push esi
push eax
call fcn.00405be0
mov eax, dword [ebx + 0x38]
mov edi, dword [eax]
cmp edi, eax
je 0x405f85
cmp byte [edi + 0x24], 0
je 0x405f7e
mov eax, dword [ebx + 0x44]
mov edx, dword [eax + 4]
lea ecx, [edi + 8]
push ecx
push edx
push eax
mov dword [esp + 0x1c], eax
call fcn.0040bb50
lea ecx, [ebx + 0x40]
mov dword [esp + 0x14], eax
call fcn.0040bc00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
push edi
lea edx, [esp + 0x60]
push edx
lea edi, [ebx + 0x34]
mov dword [ecx], eax
call fcn.00408dd0
mov eax, dword [ebx + 0x38]
mov edi, dword [eax]
jmp 0x405f80
mov edi, dword [edi]
cmp edi, dword [ebx + 0x38]
jne 0x405f32
mov eax, dword [ebx + 0x44]
mov edi, dword [eax]
cmp edi, eax
je 0x405fb2
mov edi, edi
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], ebx
mov eax, dword [eax]
lea ecx, [edi + 8]
add eax, 0x828
call fcn.00409300
lea ecx, [edi + 8]
mov dword [eax], ecx
mov edi, dword [edi]
cmp edi, dword [ebx + 0x44]
jne 0x405f90
mov eax, dword [ebx + 0x38]
mov edi, dword [eax]
cmp edi, eax
je 0x405fe2
jmp 0x405fc0
mov edx, dword [esp + 0x1c]
mov dword [edi + 0xc], ebx
mov eax, dword [edx]
lea ecx, [edi + 8]
add eax, 0x828
call fcn.00409300
lea ecx, [edi + 8]
mov dword [eax], ecx
mov edi, dword [edi]
cmp edi, dword [ebx + 0x38]
jne 0x405fc0
lea eax, [ebx + 0x50]
push eax
mov ecx, ebx
mov dword [ebx + 4], 0
call fcn.0044b5e0
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
jl 0x405c42
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov esi, dword [ecx]
jle 0x40603f
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
lea edi, [esi + 8]
add eax, 0x828
mov ecx, edi
call fcn.00409300
sub dword [esp + 0x20], 1
mov dword [eax], edi
mov esi, dword [esi]
jne 0x406021
xor edi, edi
mov dword [esp + 0xcc], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40605b
push eax
call fcn.00456cf3
add esp, 4
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00414a80
int3