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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp - 0x40]
add word [ebp - 0x58], 0xe6a
sub ecx, eax
mov ecx, dword [ebp - 0x40]
mov word [ebp - 0x30], 0xe8
lea esi, [ecx - 0x10]
mov dword [ebp - 0x40], esi
and eax, dword [ebp - 0x4c]
and esi, ecx
mov edx, dword [ebp - 0x64]
lea edx, [edx - 8]
push edx
push dword [ebp - 0x40]
call fcn.00403812
lea edi, [ebp - 0x80]
push edi
mov edi, dword [ebp - 0x40]
push dword [edi + 0x18]
call fcn.00403812
and esi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x64]
lea edx, [edx - 0x78]
push edx
push dword [ebp - 0x80]
call fcn.00403812
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x48], 0x400002
jne 0x404009
je 0x403ffa
xor edx, edx
test esi, esi
setg dl
lea esi, [edx + edx - 1]
test esi, esi
mov edi, dword [ebp - 0x44]
lea ecx, [edi + 0x68c]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x2c], 0x21
add edi, dword [ebp - 0x7c]
xor ecx, dword [ebp - 0x6c]
sub edi, edx
mov ebx, dword [ebp - 0x24]
or dword [ebp - 0x50], edx
sub eax, edx
mov esi, dword [ebp - 0x44]
or edi, dword [ebp - 0x84]
add dword [ebp - 0x84], ebx
lea ebx, [esi + 0x58c]
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x48], 0
je 0x404064
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xcc], 0x43194c
mov edx, dword [ebp - 0xcc]
jmp 0x4041ab
mov edi, dword [ebp - 0x44]
push dword [edi + 0xfb8]
cmp dword [ebp - 0x38], 0xffffffed
jne 0x404090
cmp dword [ecx], 0x419403
jne 0x4040e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x404086
mov eax, dword [eax + 4]
or dword [ebp - 0x30], 0x5c4
mov dword [ebp - 0x28], eax
pop dword [ebp - 0x5c]
mov ebx, ecx
and dword [ebp - 0x7c], ecx
lea edi, [ebp - 0x5c]
push edi
mov edi, dword [ebp - 0x3c]
push dword [edi]
call fcn.00403968
xor edx, dword [ebp - 0x78]
cmp dword [ebp - 0x48], 0xfffffff2
jne 0x4040cb
pop ecx
test eax, eax
jne 0x4040c1
inc dword [0x43f7e8]
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 0x60], 0x265
cmp dword [ebp - 0x38], 0x400002
jne 0x4040e3
push 0
push dword [ebp + 8]
push dword [ebp - 0x5c]
cmp dword [ebp - 0x48], 0
je 0x404104
mov esi, dword [ebp - 0x64]
push dword [esi - 0x78]
sub edx, dword [ebp - 0x58]
xor edi, dword [ebp - 0x6c]
call fcn.00416818
cmp dword [ebp - 0x38], 1
je 0x40412a
sbb edi, edi
lea ecx, [ebp - 0x20]
not edi
call fcn.00406e46
or edx, ecx
or edx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x80]
add eax, dword [ebp - 0x58]
add edx, edi
or dword [ebp - 0x80], esi
je 0x40418e
add eax, dword [ebp - 0x30]
xor ebx, edi
push dword [ebp - 0x24]
push dword [ebp - 0x80]
call fcn.00403812
cmp dword [ebp - 0x38], 0xf
jne 0x40415c
cmp ecx, 4
or word [ebp - 0x34], 0xfac
xor ebx, dword [ebp - 0x30]
mov esi, 4
add dword [ebp - 0x24], esi
sub ebx, esi
xor edi, esi
add dword [ebp - 0x3c], 4
or word [ebp - 0x84], 0xf29
lea esi, [ebx - 0x14]
jmp 0x4041ab
xor edx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x3c]
mov byte [ebp - 0x2c], 0x35
cmp dword [ebx], 0
jne 0x40406c
sub ecx, ebx
cmp dword [ebp - 0x38], 1
je 0x4041cd
mov edx, dword [eax]
push 1
sub edi, ecx
cmp dword [ebp - 0x38], 1
je 0x4041ea
mov ecx, dword [esi + 8]
mov dword [ebp - 8], ebx
sar dword [ebp - 8], 8
mov eax, dword [ebp - 8]
and eax, 0xff
mov esi, dword [ebp - 0x80]
mov edx, dword [ebp - 0x44]
xor edi, esi
lea esi, [edx + 0xc24]
mov dword [ebp - 0x80], esi
or edi, edx
and edx, dword [ebp - 0x68]
push dword [ebp - 0x80]
add esi, 0x3d8c
or dword [ebp - 0x6c], ecx
push dword [ebp - 0x44]
call fcn.0041268d
add ecx, 0xc4ac
or eax, edi
mov eax, dword [ebp - 0x44]
lea eax, [eax + 0x9c]
push eax
push dword [ebp - 0x80]
call fcn.00403812
cmp dword [ebp - 0x48], 0x74
jne 0x40423f
push ebx
call fcn.00406b0c
test eax, eax
add edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x48], 0x4d
jne 0x404250
push 0x419834
push dword [ebp - 0x44]
sub esi, edx
xor dword [ebp - 0x30], eax
call fcn.004121ef
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x8c]
push ecx
push dword [ebp - 0x5c]
call fcn.00403812
xor dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x38], 0x400002
jne 0x404286
add edx, edx
push edx
push eax
push ebx
cmp dword [eax], 0
jne 0x404d4e
push dword [ebp - 0x44]
push dword [ebp - 0x80]
call fcn.00403853
add dword [ebp - 0x84], ebx
mov eax, dword fs:[0x30]
mov dword [ebp - 0x80], eax
xor esi, dword [ebp - 0x30]
lea edx, [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x80]
push dword [edx + 0xc]
call fcn.00403812
sub ebx, dword [ebp - 0x84]
lea edx, [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x40]
push dword [edx + 0xc]
call fcn.00403812
xor dword [ebp - 0x50], eax
or dword [ebp - 0x50], 0x955
add esi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x40]
add edi, edx
sub ebx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x40]
and dword [ebp - 0x30], eax
lea esi, [edx + 0x24]
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x48], 0x24
jne 0x404301
mov ecx, dword [ebp - 0x24]
mov byte [edi + ecx], 0x20
lea ebx, [ebp - 0x5c]
push ebx
mov ebx, dword [ebp - 0x40]
push dword [ebx]
call fcn.00403812
sub ecx, dword [ebp - 0x7c]
lea ebx, [edx + eax*4 - 0xb]
mov esi, 0xffff
xor ecx, edi
add dword [ebp - 0x68], ecx
and dword [ebp - 0x5c], esi
and dword [ebp - 0x34], ecx
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x40]
push dword [ecx + 4]
mov esi, dword [ebp - 0x80]
and dword [ebp - 0x6c], 0x512
or word [ebp - 0x6c], 0x42c
mov edi, dword [ebp - 0x44]
add eax, ebx
lea esi, [edi + 0xa8]
mov dword [ebp - 0x80], esi
xor dword [ebp - 0x54], edi
cmp dword [ebp - 0x48], 0
je 0x404367
call fcn.0040e986
mov esi, eax
add esp, 8
test esi, esi
je 0x404363
lea edi, [edx - 0x6c]
and esi, ebx
push dword [ebp - 0x80]
call fcn.004171f4
cmp dword [ebp - 0x48], 0
je 0x404391
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, dword [eax + edi + 0x38]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4043bb
push 0xffffffff
cmp dword [ebp - 0x48], 0x400002
jne 0x4043ab
mov ebx, dword [ebp + 8]
movzx eax, word [esi]
mov edx, dword [edi]
push eax
sub edx, dword [ebp - 0x2c]
push dword [ebp - 0x44]
and edx, eax
xor edx, dword [ebp - 0x7c]
call fcn.004109ce
and dword [ebp - 0x60], 0xd0c
and word [ebp - 0x60], 0x3d0
lea eax, [ebp - 0x40]
sub ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x48], 0x2f
jne 0x4043e4
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
push eax
push dword [ebp - 0x80]
call fcn.00403812
mov dword [ebp - 0x7c], edi
xor ebx, edx
test dword [ebp - 0x80], 0x100000
je 0x404428
mov ecx, dword [ebp - 0x44]
and dword [ebp - 0x60], 0x44
test dword [ebp - 0x48], 0
je 0x404421
shl eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push dword [ecx + 0x1c]
mov eax, dword [esi]
push eax
or dword [ecx + 4], 1
sub ecx, ebx
and dword [ebp - 0x6c], esi
test dword [ebp - 0x80], 0x200000
je 0x404451
add dword [ebp - 0x58], ecx
mov word [ebp - 0x7c], 0x51c
mov byte [ebp - 0x4c], 0x18
mov edx, dword [ebp - 0x44]
or dword [edx + 4], 1
and edx, dword [ebp - 0x78]
test dword [ebp - 0x80], 0x1000000
je 0x40449f
cmp dword [ebp - 0x48], 0x400002
jne 0x40447e
shr edx, 0x1f
lea eax, [edi + edi]
or eax, edx
add ecx, 0x419654
mov dword [ebp - 0x28], esi
mov edi, dword [ebp - 0x44]
xor ecx, dword [ebp - 0x60]
or dword [edi + 4], 2
cmp dword [ebp - 0x48], 0xffffffea
jne 0x40449f
pop ebp
mov ecx, edi
mov dword [edi + 0x44], esi
call fcn.004154b4
push dword [ebp - 0x44]
call fcn.00410813
mov ecx, dword [ebp - 0x80]
and word [ebp - 0x2c], 0xab4
or dword [ebp - 0x34], 0x1f3
or dword [ebp - 0x80], ecx
je 0x4044fc
xor dword [ebp - 0x28], eax
sub edx, dword [ebp - 0x50]
xor edi, dword [ebp - 0x58]
cmp dword [ebp - 0x38], 0x400002
jne 0x4044df
mov ebx, 0xff000
and dword [ebp - 0x80], ebx
sub esi, dword [ebp - 0x50]
push dword [ebp - 0x44]
push dword [ebp - 0x80]
call fcn.00403853
jmp 0x40452d
mov eax, 0xff000
cmp dword [ebp - 0x48], 0x400002
jne 0x404519
lea ebx, [edx + ebx*2]
cmp edx, ebx
jae 0x4044c0
dec dword [ecx]
mov esi, dword [esi + 0x24]
and dword [ebp - 0x40], eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.00403853
sub esi, dword [ebp - 0x4c]
or dword [ebp - 0x2c], ecx
add ebx, 0xa674
mov edx, 0xf0000
and dword [ebp - 0x40], edx
xor esi, dword [ebp - 0x6c]
mov dword [ebp - 0x78], ecx
or word [ebp - 0x60], 0x734
mov eax, dword [ebp - 0x40]
or dword [ebp - 0x40], eax
je 0x40491e
and esi, dword [ebp - 0x7c]
xor esi, dword [ebp - 0x4c]
or edx, esi
xor eax, dword [ebp - 0x4c]
push 1
cmp dword [ebp - 0x38], 0xc
jne 0x40457a
cmp ecx, 0x19
ja 0x4045e1
add eax, 0x20
movzx ecx, byte [edx]
lea edi, [ecx - 0x41]
and word [ebp - 0x4c], 0x2e7
mov edi, dword [ebp - 0x80]
cmp dword [ebp - 0x48], 0xc
jne 0x404596
movzx eax, si
push eax
call dword [0x41907c]
mov ecx, dword [ebp - 0x44]
lea edi, [ecx + 0x4a8]
mov dword [ebp - 0x80], edi
cmp dword [ebp - 0x38], 1
je 0x4045ae
add esp, 4
push dword [ebp - 0x80]
and ecx, dword [ebp - 0x4c]
or ecx, dword [ebp - 0x58]
add eax, ebx
mov edi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x44]
xor dword [ebp - 0x58], 0xffffffc0
lea edi, [eax + 0xde0]
mov dword [ebp - 0x80], edi
add word [ebp - 0x6c], 0x6be
sub eax, dword [ebp - 0x78]
push dword [ebp - 0x80]
lea ebx, [edx - 0x76]
or edi, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
xor dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x44]
or dword [ebp - 0x34], 0x318
cmp dword [ebp - 0x48], 0
je 0x404608
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419301
mov eax, dword fs:[0]
push eax
lea edx, [eax + 0xd70]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x48], 0x400002
jne 0x404628
add esp, 8
test eax, eax
jne 0x404607
xor ecx, ecx
mov ecx, dword [eax]
push dword [ebp - 0x80]
push dword [ebp - 0x44]