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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480395
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 0x406321
lea eax, [esp + 0x60]
push eax
call fcn.004063a0
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.0040c390
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.0040c440
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.00406420
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 0x405fc3
xor ecx, ecx
jmp 0x405fcc
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 0x405fe8
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x2c], edx
jmp 0x405ff4
push ebx
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0043e300
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 0x40600f
xor eax, eax
jmp 0x40601d
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406014
sub eax, edi
push eax
lea edi, [ebx + 0x20]
push ecx
mov ecx, edi
call fcn.00414de0
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 0x40604f
push edi
lea ecx, [ebx + 0x20]
call fcn.00414d10
mov eax, dword [ebx + 0x20]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.004642d8
push eax
call fcn.004141d0
add esp, 0xc
test edi, edi
jl 0x40638e
mov eax, dword [ebx + 0x20]
cmp edi, dword [eax - 8]
jg 0x40638e
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 0x40622b
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.004091a0
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, 0x1b5c
lea ecx, [esp + 0x10]
call fcn.00412f00
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.0047999a
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.00478d10
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 0x406136
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x34]
push esi
push eax
call fcn.00405ef0
mov eax, dword [ebx + 0x38]
mov edi, dword [eax]
cmp edi, eax
je 0x406295
cmp byte [edi + 0x24], 0
je 0x40628e
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.0040c390
lea ecx, [ebx + 0x40]
mov dword [esp + 0x14], eax
call fcn.0040c440
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.00409250
mov eax, dword [ebx + 0x38]
mov edi, dword [eax]
jmp 0x406290
mov edi, dword [edi]
cmp edi, dword [ebx + 0x38]
jne 0x406242
mov eax, dword [ebx + 0x44]
mov edi, dword [eax]
cmp edi, eax
je 0x4062c2
mov edi, edi
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], ebx
mov eax, dword [eax]
lea ecx, [edi + 8]
add eax, 0x1bb4
call fcn.004097e0
lea ecx, [edi + 8]
mov dword [eax], ecx
mov edi, dword [edi]
cmp edi, dword [ebx + 0x44]
jne 0x4062a0
mov eax, dword [ebx + 0x38]
mov edi, dword [eax]
cmp edi, eax
je 0x4062f2
jmp 0x4062d0
mov edx, dword [esp + 0x1c]
mov dword [edi + 0xc], ebx
mov eax, dword [edx]
lea ecx, [edi + 8]
add eax, 0x1bb4
call fcn.004097e0
lea ecx, [edi + 8]
mov dword [eax], ecx
mov edi, dword [edi]
cmp edi, dword [ebx + 0x38]
jne 0x4062d0
lea eax, [ebx + 0x50]
push eax
mov ecx, ebx
mov dword [ebx + 4], 0
call fcn.0044de50
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
jl 0x405f52
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 0x40634f
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
lea edi, [esi + 8]
add eax, 0x1bb4
mov ecx, edi
call fcn.004097e0
sub dword [esp + 0x20], 1
mov dword [eax], edi
mov esi, dword [esi]
jne 0x406331
xor edi, edi
mov dword [esp + 0xcc], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40636b
push eax
call fcn.00459fc8
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.00414d90
int3