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

Disassembly:
push 0xffffffffffffffff
push 0x4daf28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x40]
mov dword [esi], 0x4ede20
mov dword [esi + 4], edi
mov eax, dword [edi]
mov edx, dword [eax + 0x14c]
push esi
call edx
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esi + 8], 0x4ede20
lea ebp, [esi + 8]
mov dword [esi], 0x4ede68
mov dword [ebp], 0x4ede6c
mov dword [esi + 0xc], 0x4edd34
mov dword [esi + 0x10], 0x4edd3c
mov dword [esi + 0x14], str.label
mov dword [esi + 0x18], str.editName
mov dword [esi + 0x1c], str.textLevel
mov dword [esi + 0x20], str.chkUseIcon
mov dword [esi + 0x24], str.textPos
mov dword [esi + 0x28], str.icon
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
mov ecx, edi
call edx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [edi]
mov edx, dword [eax + 0xa4]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x30], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa4]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x34], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
push edx
call eax
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x38], eax
mov edx, dword [ecx]
mov eax, dword [esi + 0x18]
mov edx, dword [edx + 0xa4]
push eax
call edx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
push edx
call eax
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x40], eax
mov edx, dword [ecx]
mov eax, dword [esi + 0x20]
mov edx, dword [edx + 0xa4]
push eax
call edx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x24]
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
push edx
call eax
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x48], eax
mov edx, dword [ecx]
mov eax, dword [esi + 0x28]
mov edx, dword [edx + 0xa4]
push eax
call edx
push 0xc
mov dword [esi + 0x4c], eax
call fcn.004b383b
add esp, 4
cmp eax, ebx
je 0x407a3e
mov dword [eax + 8], ebp
mov dword [eax + 4], ebx
mov dword [eax], 0x4ede28
mov ebp, eax
jmp 0x407a40
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp ebp, ebx
je 0x407a51
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, ebp
call edx
mov byte [esp + 0x38], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
xor edi, edi
jmp 0x407a80
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + edi*4 + 0x1c]
cmp ecx, ebx
je 0x407aa7
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xa4]
call eax
cmp eax, ebx
je 0x407aa7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xdc]
push ebp
call eax
inc edi
cmp edi, 5
jb 0x407a80
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push ebp
call eax
push 8
call fcn.004b383b
add esp, 4
cmp eax, ebx
je 0x407ad6
mov dword [eax + 4], ebx
mov dword [eax], 0x4ede70
mov edi, eax
jmp 0x407ad8
xor edi, edi
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x407ae8
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov byte [esp + 0x38], 2
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push edi
call eax
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x144]
push ebx
call eax
mov byte [esp + 0x38], 1
cmp edi, ebx
je 0x407b1b
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov byte [esp + 0x38], bl
cmp ebp, ebx
je 0x407b2d
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4