Function at 0x640160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x74ff41
push eax
mov dword fs:[0], esp
sub esp, 0x14
cmp dword [0x914448], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
je 0x640218
xor ebx, ebx
lea ecx, [ecx]
xor esi, esi
sub esp, 8
mov eax, esp
mov dword [esp + 0x1c], esp
mov dword [eax], ebx
mov dword [eax + 4], esi
sub esp, 8
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.005de4c0
fld qword [0x7e7fd0]
fnstcw word [esp + 0x22]
add esp, 0x10
movzx eax, word [esp + 0x12]
fmul st(1)
or ah, 0xc
fadd qword [0x786fd0]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
lea eax, [esi*8]
sub eax, esi
lea edx, [eax + eax*4]
add esi, 1
cmp esi, 0x46
fistp qword [esp + 0x14]
lea eax, [ebx + edx*2]
mov ecx, dword [esp + 0x14]
mov dword [eax*4 + 0x914448], ecx
fstp st(0)
fldcw word [esp + 0x12]
jl 0x640192
add ebx, 1
cmp ebx, 0x46
jl 0x640190
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 0x1c]
mov esi, dword [esp + 0x34]
fmul qword [0x780750]
fstp qword [0x895590]
mov dword [edi], esi
mov eax, dword [esi + 0x50]
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
mov dword [edi + 0xc], ecx
mov eax, dword [esi + 0x50]
cdq
idiv ecx
mov dword [edi + 4], 0x20
mov dword [edi + 0x10], eax
mov eax, ecx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov edx, eax
add edx, edx
add edx, edx
push edx
mov dword [edi + 8], eax
call fcn.0040fa60
mov dword [edi + 0x14], eax
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0xc0], 0
je 0x6402e4
xor ebp, ebp
cmp dword [edi + 8], ebp
jle 0x6403b0
mov esi, dword [edi + 8]
lea ecx, [esi*8 + 4]
push ecx
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x34], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x6402c9
push 0x63f7e0
push fcn.00412d40
push esi
lea ebx, [eax + 4]
push 8
push ebx
mov dword [eax], esi
call fcn.0071f132
mov edx, dword [edi + 0x14]
mov dword [edx + ebp*4], ebx
add ebp, 1
cmp ebp, dword [edi + 8]
mov dword [esp + 0x2c], 0xffffffff
jl 0x640290
jmp 0x6403b0
xor ebx, ebx
test dword [edi + 8], 0xfffffffe
mov esi, 2
jle 0x6403b0
mov dword [esp + 0x34], 0x14
mov eax, dword [esp + 0x34]
push eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x2c], 1
je 0x640339
push 0x63f7e0
push fcn.00412d40
push esi
lea ebp, [eax + 4]
push 8
push ebp
mov dword [eax], esi
call fcn.0071f132
mov eax, ebp
jmp 0x64033b
xor eax, eax
mov edx, dword [esp + 0x34]
mov ecx, dword [edi + 0x14]
push edx
mov dword [esp + 0x30], 0xffffffff
mov dword [ecx + ebx*4], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x2c], 2
je 0x640382
push 0x63f7e0
push fcn.00412d40
push esi
lea ebp, [eax + 4]
push 8
push ebp
mov dword [eax], esi
call fcn.0071f132
mov eax, ebp
jmp 0x640384
xor eax, eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
add dword [esp + 0x34], 0x10
sub ecx, ebx
mov dword [edx + ecx*4 - 4], eax
mov eax, dword [edi + 8]
add ebx, 1
sar eax, 1
add esi, 2
cmp ebx, eax
mov dword [esp + 0x2c], 0xffffffff
jl 0x640300
mov eax, dword [edi + 0xc]
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
mov ebx, eax
imul ebx, eax
xor esi, esi
push esi
sar ebx, 3
push esi
and ebx, 0xfffffffc
push ebx
call dword [edx + 8]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
mov ebx, eax
imul ebx, eax
push esi
sar ebx, 3
push esi
and ebx, 0xfffffffc
push ebx
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x1c], eax
mov word [edi + 0x24], si
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], esi
mov dword [edi + 0x2c], 0x1000
mov dword [edi + 0x28], 0x190
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8