Function at 0x412a54
Capabilities:
Check os version

Disassembly:
sub esp, 0x340
mov eax, dword [esp + 0x348]
push ebx
mov ebx, dword [esp + 0x348]
add eax, 0x528
push ebp
push esi
xor esi, esi
mov dword [esp + 0x30], eax
mov ebp, dword [eax + 0x3c]
add ebp, eax
mov dword [esp + 0x14], esi
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebp
call dword [ebx + 0x38]
mov edx, eax
mov ax, word [ebp + 4]
mov ecx, dword [edx + 0x3c]
cmp ax, word [ecx + edx + 4]
jne 0x4132b8
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov eax, dword [ebp + 0xa4]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x412ac3
mov eax, dword [ebp + 0x34]
mov dword [esp + 0xc], eax
push edi
push 3
xor ecx, ecx
lea edi, [ebx + 0x625]
pop edx
inc ecx
cmp byte [edi], 0
push esi
jne 0x412afd
push 0x8000000
push 0x40
lea eax, [esp + 0x58]
push eax
push esi
push 0xf001f
lea eax, [esp + 0x5c]
push eax
call dword [ebx + 0x120]
test eax, eax
jne 0x4132b7
jmp 0x412b77
push esi
push edx
push esi
push ecx
push 0x80000000
push edi
call dword [ebx + 0x60]
mov edi, eax
cmp edi, 0xffffffff
je 0x4132b7
test edi, edi
je 0x4132b7
lea eax, [esp + 0x3c]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [esp + 0x44], xmm0
call dword [ebx + 0x64]
test eax, eax
je 0x4132b7
mov eax, dword [ebp + 0x50]
cmp eax, dword [esp + 0x3c]
ja 0x4132b7
push edi
push 0x1000000
push 2
pop eax
push eax
push esi
push esi
push 0xf001f
lea eax, [esp + 0x5c]
push eax
call dword [ebx + 0x120]
push edi
mov esi, eax
call dword [ebx + 0x90]
test esi, esi
jne 0x4132b7
lea edi, [ebx + 0x625]
push 4
pop eax
push eax
push esi
push 2
pop eax
push eax
lea eax, [esp + 0x34]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
call dword [ebx + 0x70]
push eax
push dword [esp + 0x68]
call dword [ebx + 0x124]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov esi, dword [esi + 0x3c]
add esi, ecx
mov dword [esp + 0x1c], esi
test eax, eax
je 0x412bbb
cmp eax, 0x40000003
jne 0x4132b7
test ecx, ecx
je 0x4132b7
cmp byte [edi], 0
je 0x412c12
lea eax, [esp + 0x30]
push eax
push 4
pop edi
push edi
push dword [esp + 0x30]
push ecx
call dword [ebx + 0x48]
push edi
push 0x3000
push dword [ebp + 0x54]
push 0
call dword [ebx + 0x3c]
push dword [ebp + 0x54]
mov edi, eax
push dword [esp + 0x14]
mov dword [esp + 0x50], edi
push edi
call fcn.00413d40
push dword [esp + 0x34]
push 0
push dword [esp + 0x24]
call fcn.00413d64
mov ecx, dword [esp + 0x28]
add esp, 0x18
jmp 0x412c1a
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
push dword [ebp + 0x54]
push dword [esp + 0x38]
push ecx
call fcn.00413d40
mov eax, dword [esp + 0x1c]
xor ecx, ecx
and dword [esp + 0x20], 0
add esp, 0xc
mov dword [esi + 0x34], eax
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, esi
mov dword [esp + 0x3c], eax
cmp cx, word [esi + 6]
jae 0x412c8f
mov ebx, dword [esp + 0x14]
lea edi, [eax + 0x10]
mov ebp, esi
push dword [edi]
mov eax, dword [edi + 4]
mov esi, dword [edi - 4]
add eax, dword [esp + 0x38]
add esi, dword [esp + 0x14]
push eax
push esi
call fcn.00413d40
movzx eax, byte [esi]
lea edi, [edi + 0x28]
add esp, 0xc
mov dword [edi - 0x30], eax
movzx eax, word [ebp + 6]
inc ebx
cmp ebx, eax
jb 0x412c54
mov ebx, dword [esp + 0x354]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov edi, edx
sub edi, dword [ebp + 0x34]
cmp dword [esp + 0x24], 0
je 0x412d65
test edi, edi
je 0x412d65
mov eax, dword [esi + 0xa0]
lea ecx, [eax + edx]
add eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
add eax, edx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jae 0x412d65
mov eax, dword [ecx + 4]
test eax, eax
je 0x412d65
lea esi, [ecx + 8]
jmp 0x412d47
movzx esi, word [esi]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 0xfff
add ecx, dword [eax]
mov eax, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x50]
jae 0x412d37
shr si, 0xc
cmp si, 0xa
je 0x412d06
push 3
pop eax
cmp si, ax
jne 0x412d0b
add dword [ecx + edx], edi
jmp 0x412d28
xor eax, eax
inc eax
cmp si, ax
jne 0x412d1a
mov eax, edi
shr eax, 0x10
jmp 0x412d25
push 2
pop eax
cmp si, ax
jne 0x412d2e
movzx eax, di
add dword [ecx + edx], eax
mov edx, dword [esp + 0x10]
jmp 0x412d37
test si, si
jne 0x413256
mov esi, dword [esp + 0x14]
push 2
pop ecx
add esi, ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
add eax, ecx
mov dword [esp + 0x14], esi
cmp esi, eax
jne 0x412cda
mov eax, dword [esp + 0x38]
mov ecx, esi
add eax, edx
mov dword [esp + 0x20], esi
cmp esi, eax
jb 0x412cca
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x412e3b
lea esi, [eax + edx]
cmp dword [esi + 0xc], 0
mov dword [esp + 0x18], esi
je 0x412e3b
mov eax, dword [esi + 0xc]
add eax, edx
push eax
push ebx
call fcn.004136d2
mov edx, dword [esp + 0x18]
mov edi, dword [esi + 0x10]
mov dword [esp + 0x40], eax
add edi, edx
mov eax, dword [esi]
add eax, edx
mov dword [esp + 0x28], edi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x412e26
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x358]
jns 0x412dce
push ecx
push 0
push ebp
push ebx
call fcn.00413770
jmp 0x412e00
lea edi, [edx + 2]
add edi, ecx
cmp dword [esi + 4], 0
je 0x412df2
push edi
push ebx
call fcn.00412073
pop ecx
pop ecx
test eax, eax
je 0x412df2
mov eax, dword [ebx + 0x108]
mov edi, dword [esp + 0x20]
jmp 0x412e03
push 0
push edi
push ebp
push ebx
call fcn.00413770
mov edi, dword [esp + 0x30]
add esp, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 4
pop ecx
add eax, ecx
add edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
test ecx, ecx
jne 0x412dc0
mov esi, dword [esp + 0x18]
add esi, 0x14
mov dword [esp + 0x18], esi
cmp dword [esi + 0xc], 0
jne 0x412d88
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x412ed9
lea esi, [eax + 4]
add esi, edx
mov dword [esp + 0x18], esi
mov eax, dword [esi]
test eax, eax
je 0x412ed9
add eax, edx
push eax
push ebx
call fcn.004136d2
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
pop ecx
pop ecx
test eax, eax
je 0x412ec8
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add edi, edx
add ecx, edx
mov dword [esp + 0x14], ecx
mov eax, dword [edi]
test eax, eax
je 0x412ec8
mov ebp, dword [esp + 0x38]
push 4
pop esi
jns 0x412e94
xor ecx, ecx
jmp 0x412e99
lea ecx, [edx + 2]
add ecx, eax
xor edx, edx
test eax, eax
cmovns eax, edx
push eax
push ecx
push ebp
push ebx
call fcn.00413770
mov ecx, dword [esp + 0x24]
add edi, esi
add esp, 0x10
mov dword [ecx], eax
add ecx, esi
mov eax, dword [edi]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x412e8e
mov esi, dword [esp + 0x18]
add esi, 0x20
mov dword [esp + 0x18], esi
mov eax, dword [esi]
test eax, eax
jne 0x412e5c
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x54]
push 0x3e
pop ecx
mov esi, ebp
mov eax, dword [eax + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x58]
add eax, edx
shr edi, 0x10
push 4
imul esi, edi, 0x28
push 0x3000
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
push esi
push 0
call dword [ebx + 0x3c]
push esi
push dword [esp + 0x40]
mov dword [esp + 0x20], eax
push eax
call fcn.00413d40
xor eax, eax
add esp, 0xc
inc eax
cmp dword [ebx + 0x574], eax
jne 0x412f6b
cmp byte [ebx + 0x625], 0
jne 0x412f53
push dword [ebp + 0x54]
push 0
push dword [esp + 0x18]
call fcn.00413d64
push dword [ebp + 0x54]
push 0
push dword [esp + 0x48]
call fcn.00413d64
add esp, 0x18
jmp 0x412f6b
mov eax, dword [esp + 0x48]
test eax, eax
je 0x412f6b
push dword [ebp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.00413d40
add esp, 0xc
cmp byte [ebx + 0x625], 0
jne 0x412fcc
push dword [esp + 0x10]
call dword [ebx + 0x70]
push eax
call dword [ebx + 0x128]
test eax, eax
jne 0x4132b7
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x24], ecx
push pe_nt_image_headers32
push ecx
push 2
cmovne eax, ecx
and dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
pop eax
push eax
lea eax, [esp + 0x34]
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x2c]
push eax
call dword [ebx + 0x70]
push eax
push dword [esp + 0x68]
call dword [ebx + 0x124]
test eax, eax
jne 0x4132b7
lea eax, [esp + 0x30]
push eax
push 8
push dword [esp + 0x30]
push dword [esp + 0x1c]
call dword [ebx + 0x48]
xor eax, eax
mov dword [esp + 0x24], eax
test edi, edi
je 0x413097
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
add edi, 0xc
mov edx, dword [edi + 0x18]
mov ebp, edx
mov ecx, edx
shr ebp, 0x1e
shr edx, 0x1d
shr ecx, 0x1f
and edx, 1
test ecx, edx
jne 0x413085
test ebp, edx
je 0x413016
push 0x20
jmp 0x413045
mov eax, edx
xor eax, 1
mov dword [esp + 0x3c], eax
and eax, ecx
test ebp, eax
je 0x413033
cmp byte [ebx + 0x625], 0
push 8
pop esi
push 4
jmp 0x413050
xor eax, eax
inc eax
xor ecx, eax
mov eax, ebp
xor eax, 1
and eax, ecx
test edx, eax
je 0x413048
push 0x10
pop esi
jmp 0x413054
and ecx, dword [esp + 0x3c]
test ebp, ecx
push 2
pop eax
cmovne esi, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
add edx, ecx
mov eax, dword [esp + 0x14]
dec eax
cmp dword [esp + 0x24], eax
jae 0x41306e
mov eax, dword [edi + 0x28]
sub eax, ecx
jmp 0x413071
mov eax, dword [edi + 4]
and dword [esp + 0x30], 0
lea ecx, [esp + 0x30]
push ecx
push esi
push eax
push edx
call dword [ebx + 0x48]
mov eax, dword [esp + 0x24]
inc eax
add edi, 0x28
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x14]
jb 0x412ff7
lea eax, [esp + 0x30]
xor edi, edi
push eax
push 2
pop eax
push eax
push dword [esp + 0x88]
mov dword [esp + 0x3c], edi
push dword [esp + 0x1c]
call dword [ebx + 0x48]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x4130f0
mov esi, dword [esi + ecx + 0xc]
test esi, esi
je 0x4130f0
mov eax, dword [esi]
test eax, eax
je 0x4130f0
push 4
pop ebx
push edi
push 1
push ecx
call eax
mov ecx, dword [esp + 0x10]
add esi, ebx
mov eax, dword [esi]
test eax, eax
jne 0x4130d7
mov ebx, dword [esp + 0x354]
mov ebp, dword [esp + 0x358]
push 3
pop eax
cmp dword [ebp], eax
jne 0x4131e9
xor eax, eax
inc eax
push edi
push eax
mov eax, dword [esp + 0x84]
push ecx
add eax, ecx
call eax
cmp byte [ebp + 0x30c], 0
je 0x41323e
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x413242
mov esi, dword [ecx + edx + 0x18]
test esi, esi
je 0x413242
mov eax, dword [ecx + edx + 0x20]
lea edi, [esi - 1]
mov ebp, dword [ecx + edx + 0x1c]
add eax, edx
mov ecx, dword [ecx + edx + 0x24]
add ebp, edx
add ecx, edx
mov dword [esp + 0x3c], ecx
lea edi, [eax + edi*4]
mov ecx, dword [esp + 0x358]
mov eax, dword [edi]
add ecx, 0x30c
add eax, edx
push ecx
push eax
call fcn.00413d79
mov edx, dword [esp + 0x18]
pop ecx
pop ecx
test eax, eax
je 0x41318d
push 4
pop eax
sub edi, eax
sub esi, 1
jne 0x41315c
jmp 0x413256
mov eax, dword [esp + 0x3c]
movzx eax, word [eax + esi*2 - 2]
mov esi, dword [ebp + eax*4]
add esi, edx
je 0x413256
mov ebp, dword [esp + 0x358]
lea edi, [ebp + 0x40c]
cmp byte [edi], 0
je 0x4131e5
cmp dword [ebp + 0x50c], 0
je 0x4131cf
lea eax, [esp + 0x14c]
push eax
push edi
push ebx
call fcn.004136ad
add esp, 0xc
cmp dword [ebp + 0x50c], 0
lea eax, [esp + 0x14c]
cmove eax, edi
push eax
call esi
jmp 0x41323e
call esi
jmp 0x41323e
lea eax, [ebp + 0x40c]
cmp byte [eax], 0
je 0x413214
lea ecx, [esp + 0x14c]
push ecx
push eax
push ebx
call fcn.004136ad
lea eax, [esp + 0x158]
push eax
push ebx
call fcn.00413485
add esp, 0x14
cmp dword [ebp + 4], edi
je 0x413231
push edi
push edi
push edi
push dword [esp + 0x38]
push edi
push edi
call dword [ebx + 0x5c]
test eax, eax
je 0x41323e
push 0xffffffffffffffff
push eax
call dword [ebx + 0x58]
jmp 0x41323e
mov eax, dword fs:[0x18]
push dword [eax + 0x30]
call dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push 3
pop eax
cmp dword [ebx + 0x230], eax
jne 0x413256
push 0xffffffffffffffff
call dword [ebx + 0x4c]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x41329c
movzx eax, word [esp + 0x5a]
mov esi, 0xc000
imul eax, eax, 0x28
push esi
push eax
push dword [esp + 0x20]
call dword [ebx + 0x40]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x413284
push esi
push dword [esp + 0xac]
push eax
call dword [ebx + 0x40]
push dword [esp + 0x10]
call dword [ebx + 0x70]
push eax
call dword [ebx + 0x128]
push dword [esp + 0x44]
call dword [ebx + 0x90]
mov eax, dword [esp + 0x358]
push dword [eax + 0x524]
push 0
push dword [esp + 0x3c]
call fcn.00413d64
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret