Function at 0x10042040
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov esi, esp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xa4], esp
mov dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xac], 0x100512f0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea edx, [esi + 0xa8]
mov edi, dword fs:[0]
mov dword [esi + 0xa8], edi
mov dword fs:[0], edx
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x30]
mov edx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0x24], 0x80
mov dword [esi + 0xb0], 0
call fcn.10043e90
mov ecx, dword [ebp + 8]
cmp byte [esi + 0x30], 6
jne 0x100420f3
mov eax, dword [esi + 0x34]
mov dword [ecx + 4], eax
mov byte [ecx], 6
jmp 0x100422b1
movsd xmm2, qword [esi + 0x58]
movsd xmm1, qword [esi + 0x50]
movsd xmm0, qword [esi + 0x60]
cmp byte [esi + 0x20], 0
movsd qword [esi + 0x90], xmm2
movsd qword [esi + 0x88], xmm1
movsd xmm2, qword [esi + 0x48]
movsd xmm1, qword [esi + 0x40]
movsd qword [esi + 0x98], xmm0
movsd qword [esi + 0x80], xmm2
movsd qword [esi + 0x78], xmm1
movsd xmm2, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x38]
movsd qword [esi + 0x70], xmm1
movsd qword [esi + 0x68], xmm2
je 0x10042162
mov ah, byte [esi + 0x21]
movzx eax, ah
add eax, 0xfffffff7
cmp eax, 0x17
jbe 0x1004223d
jmp 0x10042271
lea eax, [esi + 0xc]
mov dword [esi + 0xb0], 1
push eax
lea eax, [esi + 0x30]
push eax
call fcn.10015a50
add esp, 8
movzx eax, byte [esi + 0x30]
cmp eax, 4
je 0x10042214
cmp eax, 5
je 0x100421a5
mov eax, dword [esi + 0x30]
cmp al, 4
je 0x1004222b
movzx ecx, al
cmp ecx, 5
jne 0x1004225a
mov eax, dword [ebp + 8]
movsd xmm2, qword [esi + 0x90]
movsd xmm1, qword [esi + 0x88]
movsd xmm0, qword [esi + 0x98]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xb0], 3
movsd qword [eax + 0x28], xmm2
movsd qword [eax + 0x20], xmm1
movsd xmm2, qword [esi + 0x80]
movsd xmm1, qword [esi + 0x78]
movsd qword [eax + 0x30], xmm0
movsd qword [eax + 0x18], xmm2
movsd qword [eax + 0x10], xmm1
movsd xmm2, qword [esi + 0x68]
movsd xmm1, qword [esi + 0x70]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
push edx
call dword [ecx]
add esp, 4
jmp 0x100422c7
mov ecx, dword [esi + 0x18]
mov ah, byte [esi + 0x31]
inc ecx
cmp ah, 0xa
jne 0x10042228
add dword [esi + 0x1c], ecx
inc dword [esi + 0x14]
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov byte [esi + 0x20], 1
mov byte [esi + 0x21], ah
movzx eax, ah
add eax, 0xfffffff7
cmp eax, 0x17
ja 0x10042271
mov ecx, 0x800013
bt ecx, eax
jae 0x10042271
mov byte [esi + 0x20], 0
mov dword [esi + 0xb0], 1
jmp 0x10042162
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], ecx
push eax
call fcn.101ac7d0
add esp, 4
jmp 0x10042296
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x30], 0x13
mov dword [esi + 0xb0], 1
push ecx
push eax
lea eax, [esi + 0x30]
push eax
call fcn.101ac710
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [esi + 0xb0], 0
mov dword [ecx + 4], eax
mov byte [ecx], 6
lea ecx, [esi + 0x68]
call fcn.10012de0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xb0], 2
push eax
call dword [ecx]
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
je 0x100422e0
push dword [ecx + 8]
push eax
push dword [esi + 0xc]
call fcn.100985c0
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x100422f4
push 1
push eax
push dword [esi]
call fcn.100985c0
add esp, 0xc
mov eax, dword [esi + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret