Function at 0x4165e0
Capabilities:
Access peb ldr_data
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x493281
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push ebp
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0xf4]
mov dword [esp + 0x14], edi
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
call fcn.0042a410
or ebp, 0xffffffff
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebp
mov dword [esp + 0xf0], ebp
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.0042a410
mov dword [esp + 0x68], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
lea eax, [esp + 0xa4]
mov byte [esp + 0x1bc], 1
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], 0x497a78
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
call dword [0x49746c]
mov ecx, dword [edi + 0xcc]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], eax
jle 0x416fc9
push esi
push eax
mov ecx, edi
call fcn.00428590
test eax, eax
je 0x4167ce
lea ecx, [esp + 0x10]
lea esi, [edi + 0xa4]
lea edx, [esp + 0xc8]
push ecx
push edx
mov ecx, esi
call fcn.0042b380
mov eax, dword [eax]
mov edx, dword [edi + 0xa8]
mov ecx, eax
cmp eax, edx
mov dword [esp + 0x14], ecx
je 0x416f93
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x64], eax
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x68], edx
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x6c], eax
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x60], edx
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x5c], eax
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x78], edx
mov ecx, dword [ecx + 0x30]
cmp eax, ebp
mov dword [esp + 0x7c], ecx
je 0x4167a8
cmp eax, 0xfffffb2e
je 0x4167a8
mov edx, dword [edi + 0xe8]
mov ecx, dword [edx + eax*4]
mov eax, 1
cmp dword [ecx + 0x84], eax
jne 0x4167a8
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
call fcn.0042c7a0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0042c750
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x416744
jmp 0x416f93
lea eax, [esp + 0x10]
lea edx, [esp + 0xd0]
push eax
lea ecx, [edi + 0xa4]
push edx
call fcn.0042b380
mov eax, dword [eax]
mov edx, dword [edi + 0xa8]
mov ecx, eax
cmp eax, edx
mov dword [esp + 0x14], ecx
je 0x416f93
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x64], eax
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x68], edx
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x6c], eax
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x60], edx
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x5c], eax
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x78], edx
mov ecx, dword [ecx + 0x30]
cmp eax, ebp
mov dword [esp + 0x7c], ecx
je 0x416f14
cmp eax, 0xfffffb2e
je 0x416f14
mov ecx, dword [edi + 0xe8]
mov esi, dword [ecx + eax*4]
mov eax, 1
cmp dword [esi + 0x84], eax
jne 0x416f14
mov ecx, dword [esi + 0x144]
xor ebp, ebp
cmp ecx, ebx
mov dword [esp + 0x1c], ebp
jle 0x416f11
mov dword [esp + 0x24], eax
jmp 0x416884
xor ebx, ebx
mov edx, dword [esp + 0x1d0]
lea eax, [edi + 0x138]
push ebp
push eax
lea eax, [esp + 0x19c]
push edx
push eax
lea ecx, [esi + 0x88]
call fcn.00452b70
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x3c]
call dword [edx]
cmp dword [esi + 0x100], 1
jne 0x416c42
lea eax, [esp + 0x98]
lea edi, [esi + 0x108]
push eax
push edi
lea ecx, [esp + 0x190]
mov dword [esi + 0x100], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.0042abc0
lea ecx, [esp + 0x118]
push eax
push ecx
lea ecx, [esi + 0x24]
call fcn.0042a3e0
mov eax, dword [eax]
mov dword [esp + 0xa4], ebx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [edi]
lea edx, [esp + 0xa0]
lea eax, [esp + 0x108]
mov dword [esp + 0xa0], ecx
push edx
push eax
lea ecx, [esi + 0x34]
call fcn.0040ce80
mov eax, dword [eax]
mov edx, dword [edi]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi + 0x10c]
mov dword [esp + 0x28], ecx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x54], eax
mov ecx, dword [esi + 0x198]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1cc]
mov edi, dword [eax + 8]
push edx
push edi
call fcn.00408180
lea eax, [esp + 0x94]
lea ecx, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x9c], ebx
lea ecx, [esp + 0x128]
mov dword [esp + 0x3c], edi
lea ebx, [esi + 0x14]
call fcn.0040d390
lea edx, [esp + 0x110]
push eax
push edx
mov ecx, ebx
call fcn.0040ce80
mov eax, dword [eax]
mov ecx, ebx
mov ebp, dword [eax + 0x10]
lea eax, [esp + 0x34]
push eax
inc ebp
call fcn.0042a290
mov ebx, dword [esp + 0x1c8]
push 1
push edi
mov ecx, ebx
mov dword [eax], ebp
call fcn.0040b3a0
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
mov ebp, eax
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push edi
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x174]
push ebx
push ecx
mov ecx, edi
call fcn.00415a50
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x168], 0
test eax, eax
je 0x416a16
push eax
call fcn.0046a70c
add esp, 4
mov edx, dword [esi + 0xf8]
mov ecx, ebx
push edx
mov dword [esp + 0x184], 0x40
mov dword [esp + 0x188], 0
call fcn.0040b080
push ebp
mov ecx, edi
call fcn.004144a0
mov ebx, dword [esp + 0x1cc]
add ebp, 0x20
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x416a98
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
cmp eax, edx
je 0x416a98
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [ebx + 0x1c], ecx
jne 0x416a7a
push ebp
push eax
call fcn.0042d790
add esp, 8
mov ecx, ebx
call fcn.0042b840
jmp 0x416ab2
test eax, eax
je 0x416ab2
mov ecx, ebp
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x416ab2
mov ecx, ebx
call fcn.0042b840
mov eax, dword [ebx + 0x1c]
push ebp
push eax
lea edx, [eax + 0x10]
mov dword [ebx + 0x1c], edx
call fcn.0042d790
add esp, 8
mov eax, dword [ebx + 0x2c]
lea ecx, [esp + 0xa8]
inc eax
mov dword [ebx + 0x2c], eax
call fcn.0048e20e
push ebp
mov ebp, dword [esp + 0x1d8]
lea ecx, [esp + 0xac]
lea eax, [ebp + 0x58]
push eax
push ecx
call dword [0x497464]
test eax, eax
je 0x416aeb
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x1d8]
mov ecx, ebp
push edx
push edi
call fcn.00462170
lea eax, [esp + 0x10]
lea ecx, [esp + 0x104]
push eax
push ecx
lea ecx, [edi + 0xa4]
call fcn.0042b380
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
cmp eax, 1
je 0x416b27
cmp eax, 9
jne 0x416b38
mov eax, dword [esi + 0xec]
mov edx, dword [esp + 0x1c]
mov dword [eax + edx*4], 1
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0xec]
cmp dword [eax + ebp*4], 1
jne 0x416efc
mov eax, dword [esp + 0x3c]
cmp eax, 0xa
mov eax, dword [esp + 0x40]
jne 0x416b87
mov ecx, dword [esi + 0xdc]
cmp dword [ecx + ebp*4], eax
jne 0x416b87
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx + ebp*8 + 4]
cmp edx, dword [esp + 0x48]
jne 0x416b87
mov ecx, dword [ecx + ebp*8]
mov edx, dword [esp + 0x44]
cmp ecx, edx
je 0x416efc
mov ecx, dword [esi + 0xdc]
cmp dword [ecx + ebp*4], 0xffffffff
je 0x416d27
mov eax, dword [esi + 0x114]
mov ecx, dword [ecx + ebp*4]
mov edi, dword [esp + 0x1c8]
mov edx, dword [eax + ebp*8 + 4]
mov eax, dword [eax + ebp*8]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00408180
mov eax, dword [esi + 0xdc]
push 0
mov ecx, edi
mov edx, dword [eax + ebp*4]
push edx
call fcn.0040b3a0
mov edi, eax
test edi, edi
je 0x416d1f
mov eax, dword [esi + 0x114]
mov eax, dword [eax + ebp*8 + 4]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x114]
mov ecx, dword [eax + ebp*8]
mov dword [edi + 0x20], ecx
mov eax, dword [esi + 0x114]
mov ecx, dword [edi + 0xc]
mov edx, dword [eax + ebp*8]
mov eax, dword [edi + 0x10]
add edx, eax
mov dword [edi + 0x28], edx
mov eax, dword [esi + 0x114]
mov eax, dword [eax + ebp*8 + 4]
add eax, ecx
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x416c6e
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
cmp eax, edx
je 0x416c6e
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [ebx + 0x1c], ecx
jne 0x416c4e
lea ecx, [edi + 0x20]
push ecx
push eax
call fcn.0042d790
add esp, 8
mov ecx, ebx
call fcn.0042b840
jmp 0x416c8b
mov ebx, dword [esp + 0x1cc]
jmp 0x416b40
test eax, eax
je 0x416c8b
lea ecx, [edi + 0x20]
mov edx, dword [edi + 0x20]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x416c8b
mov ecx, ebx
call fcn.0042b840
mov eax, dword [ebx + 0x1c]
lea ecx, [edi + 0x20]
push ecx
push eax
lea edx, [eax + 0x10]
mov dword [ebx + 0x1c], edx
call fcn.0042d790
add esp, 8
mov eax, dword [ebx + 0x2c]
lea ecx, [esp + 0xa8]
inc eax
mov dword [ebx + 0x2c], eax
call fcn.0048e20e
lea eax, [edi + 0x20]
lea ecx, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x1d8]
add eax, 0x58
push eax
push ecx
call dword [0x497464]
test eax, eax
je 0x416cc7
mov dword [esp + 0x20], 1
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.004148a0
lea edx, [esp + 0x10]
lea eax, [esp + 0xcc]
add edi, 0xa4
push edx
push eax
mov ecx, edi
call fcn.0042c350
mov eax, dword [eax]
mov edi, dword [edi + 4]
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x416d0b
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, edx
jl 0x416d0b
lea eax, [esp + 0x28]
jmp 0x416d19
mov dword [esp + 0x8c], edi
lea eax, [esp + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0xf4]
test ecx, ecx
jne 0x416efc
mov ecx, dword [edi + 0xb38]
test ecx, ecx
jne 0x416efc
cmp eax, 0xffffffff
je 0x416efc
cmp eax, 0xffffd8f1
je 0x416efc
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x1c8]
push edx
push ecx
push eax
mov ecx, edi
call fcn.00408180
mov edx, dword [esp + 0x40]
push 0
push edx
mov ecx, edi
call fcn.0040b3a0
mov edi, eax
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [edi + 0x10]
mov dword [edi + 0x24], eax
mov ecx, dword [esp + 0x4c]
lea eax, [edi + 0x20]
mov dword [esp + 0x24], eax
push 1
mov dword [eax], ecx
mov eax, dword [esp + 0x50]
add edx, eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0x28], edx
mov ecx, dword [esp + 0x54]
add eax, ecx
push 0xfffffb2e
mov dword [edi + 0x2c], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x1dc]
push edx
push eax
lea edx, [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x38]
push edx
call fcn.00415a50
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x138], 0
test eax, eax
je 0x416dfe
push eax
call fcn.0046a70c
add esp, 4
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x154], 0x40
mov dword [esp + 0x158], 0
call fcn.004144a0
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x416e82
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
cmp eax, edx
je 0x416e82
lea ecx, [eax + 0x10]
cmp ecx, edx
mov dword [ebx + 0x1c], ecx
jne 0x416e62
test eax, eax
je 0x416e59
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call fcn.0042b840
jmp 0x416ea0
test eax, eax
je 0x416ea0
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
jmp 0x416ea0
mov ecx, ebx
call fcn.0042b840
mov eax, dword [ebx + 0x1c]
mov edx, dword [esp + 0x1c]
push edx
push eax
lea ecx, [eax + 0x10]
mov dword [ebx + 0x1c], ecx
call fcn.0042d790
add esp, 8
mov edx, dword [ebx + 0x2c]
lea ecx, [esp + 0xa8]
inc edx
mov dword [ebx + 0x2c], edx
call fcn.0048e20e
mov ecx, dword [esp + 0x1d4]
mov eax, dword [esp + 0x1c]
add ecx, 0x58
push eax
lea edx, [esp + 0xac]
push ecx
push edx
call dword [0x497464]
test eax, eax
je 0x416edd
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc4]
push eax
push esi
push ecx
mov ecx, edi
call fcn.00414fe0
mov edx, dword [eax]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x144]
inc ebp
cmp ebp, eax
mov dword [esp + 0x1c], ebp
jl 0x416882
xor ebx, ebx
or ebp, 0xffffffff
lea ecx, [esp + 0x90]
call fcn.00474aac
mov ecx, dword [esp + 0x14]
mov edx, dword [0x536024]
mov byte [esp + 0x1c0], 2
mov eax, dword [ecx + 8]
cmp eax, edx
je 0x416f44
push eax
call fcn.0042c710
add esp, 4
jmp 0x416f5f
mov eax, dword [ecx + 4]
cmp ecx, dword [eax + 8]
jne 0x416f5a
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x416f4c
cmp dword [ecx + 8], eax
je 0x416f63
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x1c0], 1
call fcn.00474b48
lea eax, [esp + 0x10]
lea ecx, [edi + 0xa4]
push eax
call fcn.0042c750
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x4167fc
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xcc]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x416704
mov eax, dword [esp + 0x20]
pop esi
cmp eax, 1
jne 0x416fc9
mov ecx, dword [esp + 0x1d4]
push ecx
mov ecx, dword [esp + 0x1d4]
push edi
call fcn.00462170
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x68], ebx
cmp eax, ebx
je 0x416fde
push eax
call fcn.0046a70c
add esp, 4
mov eax, dword [esp + 0xf4]
pop edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0xdc], ebx
pop ebp
cmp eax, ebx
mov dword [esp + 0x78], 0x40
pop ebx
je 0x41700b
push eax
call fcn.0046a70c
add esp, 4
mov ecx, dword [esp + 0x1a8]
mov eax, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x1b4
ret 0x14