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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
or dword [esp - 0x1000], 0
or dword [esp - 0x116c], 0
sub esp, 0x16c
mov ebx, eax
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 9
jbe 0x409cb2
mov dword [0x721010], 0x18
xor edx, edx
mov dword [0x721008], 0x200000
mov dword [0x72100c], 0x18
mov dword [0x721014], edx
mov dword [0x72101c], edx
mov dword [0x721028], edx
mov dword [0x721024], edx
mov dword [0x721020], 0x1fffe8
mov dword [0x721018], 1
mov dword [eax + 0xfe0], 0x50d040
mov dword [eax + 0xfe8], 0x71f8e4
test ebx, ebx
je 0x409cb2
cmp word [ebx], 0x5a4d
jne 0x409537
mov eax, dword [ebx + 0x3c]
mov ecx, ebx
mov edi, dword [ebx + eax + 0x88]
add edi, ebx
mov eax, edi
jmp 0x409543
movzx eax, word [ebx + 0x10]
mov ecx, dword [ebx + eax + 0x28]
add ecx, ebx
mov eax, ecx
movzx esi, word [eax + 0xe]
lea edx, [eax + 0x10]
lea esi, [edx + esi*8]
cmp edx, esi
jae 0x40955c
cmp word [edx], 0xa
je 0x409564
add edx, 8
jmp 0x40954d
cmp esi, edx
je 0x409cb2
cmp byte [edx + 7], 0
jns 0x409cb2
mov esi, dword [edx + 4]
and esi, 0x7fffffff
add esi, eax
lea edx, [esi + 0x10]
movzx esi, word [esi + 0xe]
lea esi, [edx + esi*8]
cmp edx, esi
jae 0x409592
cmp word [edx], 1
je 0x40959a
add edx, 8
jmp 0x409583
cmp esi, edx
je 0x409cb2
cmp byte [edx + 7], 0
jns 0x409cb2
mov edx, dword [edx + 4]
and edx, 0x7fffffff
add edx, eax
lea esi, [edx + 0x10]
movzx edx, word [edx + 0xe]
lea edi, [esi + edx*8]
mov edx, esi
cmp edx, edi
jae 0x4095ca
cmp word [edx], 0
je 0x4095d8
add edx, 8
jmp 0x4095bb
cmp edi, edx
jne 0x4095d8
cmp esi, edx
je 0x409cb2
mov edx, esi
cmp byte [edx + 7], 0
js 0x409cb2
add eax, dword [edx + 4]
mov edi, dword [eax + 4]
mov dword [ebp - 0x150], edi
mov dword [esp + 0xc], 0x200000
mov dword [esp + 8], 0x931b60
mov dword [esp + 4], edi
add ecx, dword [eax]
mov dword [esp], ecx
call fcn.00409355
test eax, eax
js 0x409cb2
mov edx, dword fs:[0x30]
mov eax, dword [edx + 0xfe8]
mov dword [eax + 0x730], 0x931b60
mov eax, dword [edx + 0xfe8]
mov dword [eax + 0x734], ebx
mov eax, dword [edx + 0xfe8]
mov eax, dword [eax + 0x730]
mov ecx, dword [eax]
lea esi, [eax + 4]
mov dword [ebp - 0x14c], eax
mov eax, esi
add ecx, esi
cmp eax, ecx
jae 0x409cb2
cmp byte [eax], 7
lea ebx, [eax + 4]
je 0x409671
mov eax, dword [eax]
shr eax, 8
add eax, 3
and eax, 0xfffffffc
add eax, ebx
jmp 0x409652
mov eax, dword [edx + 0xc]
mov ecx, 0x71f8e4
mov edx, ebx
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [esp], 2
call fcn.00401016
lea ecx, [eax*4 + 0x71f8e4]
cmp byte [ebx], 0
je 0x4096a4
inc ebx
cmp byte [ebx - 1], 0
jne 0x40969b
jmp 0x409696
mov eax, dword [edi + 0x18]
mov dword [esp], 1
inc ebx
mov dword [ebp - 0x154], ecx
mov edx, ebx
call fcn.00401016
mov ecx, dword [ebp - 0x154]
lea ecx, [ecx + eax*4]
cmp byte [ebx], 0
je 0x4096d3
inc ebx
cmp byte [ebx - 1], 0
jne 0x4096ca
jmp 0x4096c5
mov eax, dword [edi]
xor edi, edi
inc ebx
mov edx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp], edi
mov dword [ebp - 0x154], ecx
call fcn.00401016
mov ecx, dword [ebp - 0x154]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x154], eax
cmp byte [ebx], 0
je 0x409708
inc ebx
cmp byte [ebx - 1], 0
jne 0x4096ff
jmp 0x4096fa
inc ebx
cmp byte [ebx], 0
je 0x4097a2
mov edi, ebx
inc edi
cmp byte [edi - 1], 0
jne 0x409714
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov dword [esp], ebx
call dword [eax + 0x8c]
push ecx
mov ecx, eax
test eax, eax
jne 0x409795
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov dword [esp], ebx
call dword [eax + 0x90]
mov ecx, eax
push edx
jmp 0x409795
xor eax, eax
test ecx, ecx
je 0x40977e
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [ebp - 0x158], ecx
call dword [eax + 0x94]
push ebx
push ebx
mov ecx, dword [ebp - 0x158]
add dword [ebp - 0x154], 4
mov ebx, dword [ebp - 0x154]
mov dword [ebx - 4], eax
inc edi
cmp byte [edi - 1], 0
jne 0x40978e
cmp byte [edi], 0
jne 0x409751
lea ebx, [edi + 1]
jmp 0x409709
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
add ecx, esi
cmp esi, ecx
jae 0x4097c8
mov eax, dword [esi]
lea edx, [esi + 4]
shr eax, 8
cmp byte [esi], 6
je 0x4097d0
add eax, 3
and eax, 0xfffffffc
lea esi, [edx + eax]
jmp 0x4097ac
mov eax, dword [ebp - 0x150]
xor edx, edx
mov ecx, dword fs:[0x30]
lea esi, [ebp - 0x118]
mov ecx, dword [ecx + 0xfe8]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], 0x71e7e4
call dword [ecx + 0x410]
mov eax, dword fs:[0x30]
xor edx, edx
mov eax, dword [eax + 0xfe8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x50d020
mov dword [esp + 4], 1
mov dword [esp], str.D:PAI_A_OICI_FA___WD__A_OICI_FA___AC_
call dword [eax + 0x17c]
mov eax, dword fs:[0x30]
sub esp, 0x10
mov eax, dword [eax + 0xfe8]
mov dword [esp], str.SystemRoot
call dword [eax + 0x3fc]
mov dword [esp + 8], str._smoe_map
mov dword [esp + 0xc], eax
mov ebx, eax
mov dword [esp + 4], 0x100
mov dword [esp], esi
call fcn.00403175
mov eax, dword fs:[0x30]
xor ecx, ecx
mov eax, dword [eax + 0xfe8]
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [eax + 0x460]
test eax, eax
je 0x4098c3
mov eax, dword [0x50d020]
lea edx, [ebp - 0x128]
mov dword [ebp - 0x128], 0xc
mov dword [ebp - 0x124], eax
xor eax, eax
mov dword [ebp - 0x120], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x254]
sub esp, 0xc
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov dword [eax + 0x728], 0x40528b
mov dword [eax + 0x724], 0x40b23b
mov dword [eax + 0x720], 0x405c04
mov dword [eax + 0x72c], 0x409355
call dword [eax + 0x2c0]
mov ebx, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
call dword [eax + 0x2b8]
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.process_start:pid:_d_tid:_d
mov dword [esp], 3
call fcn.0040528b
cmp dword [ebx*4 + 0x71f8e4], 0
jne 0x40995e
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.call_error:_d
mov dword [esp], 4
call dword [eax + 0x728]
inc ebx
cmp ebx, 0x1ce
jne 0x40992f
mov eax, dword fs:[0x30]
xor edi, edi
mov eax, dword [eax + 0xfe8]
mov dword [esp + 4], 0x40566f
mov dword [esp], 1
call dword [eax + 0x240]
push ebx
push ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
call dword [eax + 0x2bc]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x11
mov dword [esp + 4], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov eax, dword [eax + 0x6c]
mov dword [esp], eax
call fcn.00401000
mov ebx, dword fs:[0x30]
xor eax, eax
mov dword [esp + 0x1c], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0xfe8]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call fcn.00401000
lea eax, [ebp - 0x12c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], 0x30
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov eax, dword [eax + 0x80]
mov dword [esp], eax
call fcn.00401000
test eax, eax
jne 0x409c7d
mov eax, dword [ebp - 0x110]
mov edx, dword fs:[0x30]
mov ecx, dword [eax + 0x20]
mov edx, dword [edx + 0xfe8]
test byte [ecx + 9], 0x40
je 0x409c7d
cmp byte [eax + 2], 0
jne 0x409c7d
test byte [eax + 0xbc], 0x70
jne 0x409c7d
mov eax, 1
int3
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
call dword [eax + 0x2b4]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xfe8]
mov eax, dword [eax + 0x74]
mov dword [esp], eax
call fcn.00401000
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret