Function at 0x5f1030
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x7ce597
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0x30]
push edi
sub esp, 0x10
mov dword [esp + 0x48], ebx
lea eax, [esi + 0x14]
mov ecx, esp
sub esp, 0x10
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, esp
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esi + 4]
mov eax, dword [esi + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0xa8]
push edx
mov ecx, esi
call fcn.0057ff40
mov edx, dword [esp + 0xf8]
xor ebp, ebp
mov edi, dword [edx + 8]
cmp edi, ebp
mov dword [esp + 0x1c], edi
je 0x5f1756
mov eax, dword [ebx + 0x14]
cmp eax, ebp
je 0x5f1756
mov ecx, dword [eax + 0xbc]
cmp ecx, ebp
je 0x5f1756
lea eax, [esp + 0x40]
push eax
push edi
push edx
call fcn.0043dbb0
cmp eax, ebp
je 0x5f1756
mov eax, dword [ebx + 0x14]
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov ecx, dword [eax + 0x90]
mov edx, dword [eax + 0x88]
sub ecx, edx
mov dword [esp + 0x20], ebx
test edi, edi
mov dword [esp + 0x3c], ecx
jle 0x5f1671
mov ecx, dword [esp + 0xf8]
mov eax, dword [ecx + 4]
mov ecx, 0x7e5658
test eax, eax
je 0x5f112a
lea ecx, [eax + ebx]
cmp byte [ecx], 0xa
jne 0x5f1263
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], dl
call fcn.00404e60
mov eax, ebx
mov dword [esp + 0xf0], 0
sub eax, ebp
test eax, eax
jle 0x5f11e2
lea edi, [eax + 1]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xac]
mov byte [esp + 0xac], al
call fcn.00404e60
push edi
lea ecx, [esp + 0xdc]
push ebp
push ecx
mov ecx, dword [esp + 0x104]
mov byte [esp + 0xfc], 1
call fcn.0040b2a0
mov edx, dword [0x7e565c]
lea ecx, [esp + 0x48]
push edx
push 0
push eax
mov byte [esp + 0xfc], 2
call fcn.00404c60
push 1
lea ecx, [esp + 0xdc]
mov byte [esp + 0xf4], 1
call fcn.00404e60
push 1
lea ecx, [esp + 0xac]
mov byte [esp + 0xf4], 0
call fcn.00404e60
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5f1214
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x5f1214
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [esi + 0x1c], ecx
jne 0x5f1224
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.00508b00
add esp, 8
mov ecx, esi
call fcn.005802b0
jmp 0x5f1232
mov ecx, esi
call fcn.005802b0
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 0x10]
mov dword [esi + 0x1c], ecx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.00508b00
add esp, 8
mov edx, dword [esi + 0x2c]
push 1
inc edx
inc ebx
mov dword [esi + 0x2c], edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], ebx
mov ebp, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0xf4], 0xffffffff
call fcn.00404e60
jmp 0x5f1663
test eax, eax
mov ecx, 0x7e5658
je 0x5f126f
lea ecx, [eax + ebx]
cmp byte [ecx], 0x7c
jne 0x5f139d
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], al
call fcn.00404e60
mov edi, ebx
mov dword [esp + 0xf0], 3
sub edi, ebp
test edi, edi
jle 0x5f131c
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x9c], cl
lea ecx, [esp + 0x9c]
call fcn.00404e60
mov ecx, dword [esp + 0xf8]
push edi
lea edx, [esp + 0xbc]
push ebp
push edx
mov byte [esp + 0xfc], 4
call fcn.0040b2a0
mov ecx, dword [0x7e565c]
mov byte [esp + 0xf0], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.00404c60
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0xf4], 4
call fcn.00404e60
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0xf4], 3
call fcn.00404e60
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5f134e
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x5f134e
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [esi + 0x1c], ecx
jne 0x5f135e
lea edx, [esp + 0x58]
push edx
push eax
call fcn.00508b00
add esp, 8
mov ecx, esi
call fcn.005802b0
jmp 0x5f136c
mov ecx, esi
call fcn.005802b0
mov eax, dword [esi + 0x1c]
lea edx, [eax + 0x10]
mov dword [esi + 0x1c], edx
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.00508b00
add esp, 8
mov edx, dword [esi + 0x2c]
push 1
inc edx
inc ebx
mov dword [esi + 0x2c], edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov ebp, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0xf4], 0xffffffff
call fcn.00404e60
jmp 0x5f165f
test eax, eax
mov ecx, 0x7e5658
je 0x5f13a9
lea ecx, [eax + ebx]
test byte [ecx], 0x80
je 0x5f13b8
mov dword [esp + 0x24], 2
jmp 0x5f13d5
test eax, eax
mov dword [esp + 0x24], 1
mov ecx, 0x7e5658
je 0x5f13cc
lea ecx, [eax + ebx]
cmp byte [ecx], 0x20
jne 0x5f13d5
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x5f13e0
mov ebx, 0x7e5658
jmp 0x5f13e2
add ebx, eax
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x7c], dl
call fcn.00404e60
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x80]
call fcn.00404eb0
mov eax, dword [esp + 0x38]
mov dword [esp + 0xf0], 6
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x5f143f
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.0043dbb0
or ebx, 0xffffffff
push 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0xf4], ebx
call fcn.00404e60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x5f1641
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5f1557
cmp eax, dword [esp + 0x14]
jge 0x5f1557
mov dl, byte [esp + 0x13]
mov edi, eax
sub edi, ebp
inc eax
push 0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x6c], dl
call fcn.00404e60
mov ecx, dword [esp + 0xf8]
push edi
lea eax, [esp + 0xcc]
push ebp
push eax
mov dword [esp + 0xfc], 7
call fcn.0040b2a0
mov ecx, dword [0x7e565c]
mov byte [esp + 0xf0], 8
push ecx
push 0
push eax
lea ecx, [esp + 0x74]
call fcn.00404c60
push 1
lea ecx, [esp + 0xcc]
mov byte [esp + 0xf4], 7
call fcn.00404e60
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5f1520
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x5f1520
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [esi + 0x1c], ecx
jne 0x5f1530
lea edx, [esp + 0x68]
push edx
push eax
call fcn.00508b00
add esp, 8
mov ecx, esi
call fcn.005802b0
jmp 0x5f153e
mov ecx, esi
call fcn.005802b0
mov eax, dword [esi + 0x1c]
lea edx, [eax + 0x10]
mov dword [esi + 0x1c], edx
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.00508b00
add esp, 8
mov ecx, dword [esi + 0x2c]
push 1
inc ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 0xf4], ebx
lea ecx, [esp + 0x6c]
jmp 0x5f162e
mov edi, dword [esp + 0x14]
sub edi, ebp
test edi, edi
jle 0x5f166d
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.00404e60
mov ecx, dword [esp + 0xf8]
push edi
lea eax, [esp + 0x8c]
push ebp
push eax
mov dword [esp + 0xfc], 9
call fcn.0040b2a0
mov ecx, dword [0x7e565c]
mov byte [esp + 0xf0], 0xa
push ecx
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00404c60
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0xf4], 9
call fcn.00404e60
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5f15fc
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x5f15fc
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [esi + 0x1c], ecx
jne 0x5f160c
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00508b00
add esp, 8
mov ecx, esi
call fcn.005802b0
jmp 0x5f161a
mov ecx, esi
call fcn.005802b0
mov eax, dword [esi + 0x1c]
lea edx, [eax + 0x10]
mov dword [esi + 0x1c], edx
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00508b00
add esp, 8
mov ecx, dword [esi + 0x2c]
push 1
inc ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 0xf4], ebx
lea ecx, [esp + 0x2c]
call fcn.00404e60
mov ebp, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
add edi, edx
add ecx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov ebx, edi
mov edi, dword [esp + 0x1c]
cmp ebx, edi
jl 0x5f1114
jmp 0x5f1671
mov edi, dword [esp + 0x1c]
sub edi, ebp
test edi, edi
jle 0x5f174d
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
call fcn.00404e60
mov ecx, dword [esp + 0xf8]
push edi
lea edx, [esp + 0x8c]
mov ebx, 0xb
push ebp
push edx
mov dword [esp + 0xfc], ebx
call fcn.0040b2a0
mov ecx, dword [0x7e565c]
mov byte [esp + 0xf0], 0xc
push ecx
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00404c60
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0xf4], bl
call fcn.00404e60
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5f1712
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x5f1712
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [esi + 0x1c], ecx
jne 0x5f1722
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00508b00
add esp, 8
mov ecx, esi
call fcn.005802b0
jmp 0x5f1730
mov ecx, esi
call fcn.005802b0
mov eax, dword [esi + 0x1c]
lea edx, [eax + 0x10]
mov dword [esi + 0x1c], edx
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00508b00
add esp, 8
mov ecx, dword [esi + 0x2c]
push 1
inc ecx
mov dword [esi + 0x2c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xf4], 0xffffffff
call fcn.00404e60
mov ecx, dword [esp + 0x38]
call fcn.005ead50
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe4
ret 4