Function at 0x4782e0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c1ae2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [esp + 0x26c]
push ebx
push ebp
push esi
push edi
inc eax
mov edi, ecx
cmp eax, 0xa
mov dword [esp + 0x30], edi
mov dword [esp + 0x27c], eax
jle 0x47835d
lea eax, [esp + 0x10]
push 0xc9ba
push eax
call fcn.004ec350
add esp, 8
mov eax, dword [eax]
push 0x30
push 0
push eax
mov ecx, edi
mov dword [esp + 0x27c], 0
call fcn.005913a9
lea ecx, [esp + 0x10]
mov dword [esp + 0x270], 0xffffffff
call fcn.005936db
jmp 0x478aba
mov ecx, dword [esp + 0x278]
push ecx
lea ecx, [esp + 0x18]
call fcn.0050bc90
mov esi, 1
push 0
push str._ASSCRIPT_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x278], esi
call fcn.0050cc20
or ebp, 0xffffffff
cmp eax, ebp
je 0x4783d7
add eax, 0xa
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00453420
mov ecx, eax
mov byte [esp + 0x270], 2
call fcn.0050cda0
push eax
mov ecx, edi
call fcn.0048e5d0
lea ecx, [esp + 0x38]
mov byte [esp + 0x270], 1
call fcn.0050bd60
mov dword [esp + 0x270], ebp
jmp 0x478ab1
push 0
push str._ASAUTOCQ_
lea ecx, [esp + 0x1c]
call fcn.0050cc20
cmp eax, ebp
je 0x4784d6
lea esi, [eax + 0xa]
lea eax, [esp + 0x8c]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00453420
push 0
push str._AUTOCQ_
mov ecx, eax
mov byte [esp + 0x278], 3
call fcn.0050cc20
cmp eax, ebp
jne 0x478461
lea ecx, [esp + 0x38]
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00453420
push 0
push str._ASAUTOCQ_
mov ecx, eax
mov byte [esp + 0x278], 4
call fcn.0050cc20
cmp eax, ebp
lea ecx, [esp + 0x38]
sete bl
mov byte [esp + 0x270], 3
call fcn.0050bd60
test bl, bl
je 0x478461
mov bl, 1
jmp 0x478463
xor bl, bl
lea ecx, [esp + 0x8c]
mov byte [esp + 0x270], 1
call fcn.0050bd60
test bl, bl
je 0x4784ca
lea edx, [esp + 0x38]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.00453420
push eax
lea ecx, [edi + 0x8dfc]
mov byte [esp + 0x274], 5
call fcn.0050bec0
lea ecx, [esp + 0x38]
mov byte [esp + 0x270], 1
call fcn.0050bd60
mov ecx, edi
mov dword [edi + 0x84ec], 1
call fcn.00451bf0
mov ecx, 0x6644c0
call fcn.004cd710
mov dword [esp + 0x270], ebp
jmp 0x478ab1
push 0
push 0x62fd04
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
call fcn.0050cc20
cmp eax, ebp
je 0x4784f6
mov dword [esp + 0x10], esi
xor ebx, ebx
lea ecx, [esp + 0x14]
push ebx
push 0x3c
call fcn.0050ccd0
mov esi, eax
test esi, esi
jle 0x478520
lea eax, [esi - 1]
lea ecx, [esp + 0x14]
push eax
call fcn.0050c960
cmp al, 0x20
jbe 0x478520
mov ebx, 1
cmp esi, 0xffffffff
je 0x478a86
test esi, esi
je 0x4785a4
lea ecx, [esp + 0x8c]
call fcn.0050bc50
lea ecx, [esp + 0x118]
push esi
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 6
call fcn.0050c830
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x274], 7
call fcn.0050bec0
lea ecx, [esp + 0x118]
mov byte [esp + 0x270], 6
call fcn.0050bd60
lea ecx, [esp + 0x8c]
call fcn.0050cd90
push eax
mov ecx, edi
call fcn.00477f70
lea ecx, [esp + 0x8c]
mov byte [esp + 0x270], 1
call fcn.0050bd60
inc esi
lea edx, [esp + 0x1f8]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.00453420
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 8
call fcn.0050bec0
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x270], 1
call fcn.0050bd60
push 0
push 0x3e
lea ecx, [esp + 0x1c]
call fcn.0050ccd0
mov esi, eax
cmp esi, 0xffffffff
je 0x478a7a
push 0
push 0x3c
lea ecx, [esp + 0x1c]
or ebp, 0xffffffff
call fcn.0050ccd0
cmp eax, esi
jge 0x4789ae
test eax, eax
jl 0x478624
mov ebp, eax
inc eax
push eax
push 0x3c
lea ecx, [esp + 0x1c]
call fcn.0050ccd0
cmp eax, esi
jl 0x47860d
test ebp, ebp
jl 0x4789ae
lea ecx, [esp + 0x70]
call fcn.0050bc50
mov eax, esi
lea ecx, [ebp + 1]
sub eax, ebp
lea edx, [esp + 0xc4]
dec eax
mov byte [esp + 0x270], 9
push eax
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.0050c860
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x274], 0xa
call fcn.0050bec0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x270], 9
call fcn.0050bd60
lea ecx, [esp + 0x38]
call fcn.0050bc50
lea ecx, [esp + 0x54]
mov byte [esp + 0x270], 0xb
call fcn.0050bc50
lea eax, [esp + 0x54]
push 0
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x27c], 0xc
call fcn.0050cda0
push eax
mov ecx, edi
call fcn.004849f0
test eax, eax
jne 0x478752
lea edx, [esp + 0x54]
push ebx
push edx
lea eax, [esp + 0x78]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.0050bcf0
mov ecx, edi
call fcn.00478af0
test eax, eax
jne 0x478752
lea ecx, [esp + 0x70]
lea edx, [esp + 0x150]
push ecx
push 0x3c
push edx
call fcn.0050c730
push 0x3e
push eax
lea eax, [esp + 0x1d4]
mov byte [esp + 0x284], 0xd
push eax
call fcn.0050c6b0
add esp, 0x18
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x274], 0xe
call fcn.0050bec0
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x270], 0xd
call fcn.0050bd60
lea ecx, [esp + 0x150]
mov byte [esp + 0x270], 0xc
call fcn.0050bd60
lea ebx, [esi + 1]
lea ecx, [esp + 0x14]
push ebx
push 0x3e
call fcn.0050ccd0
mov edi, eax
cmp edi, 0xffffffff
jne 0x47883c
mov esi, dword [esp + 0x30]
push 0x62fed4
mov ecx, esi
call fcn.00477f70
lea ecx, [esp + 0x230]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.0050c830
mov ecx, eax
mov byte [esp + 0x270], 0xf
call fcn.0050cd90
push eax
mov ecx, esi
call fcn.00477f70
lea ecx, [esp + 0x230]
mov byte [esp + 0x270], 0xc
call fcn.0050bd60
lea ecx, [esp + 0x54]
call fcn.0050cd90
push eax
mov ecx, esi
call fcn.00477f70
lea edx, [esp + 0x188]
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.00453420
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 0x10
call fcn.0050bec0
lea ecx, [esp + 0x188]
mov byte [esp + 0x270], 0xc
call fcn.0050bd60
lea ecx, [esp + 0x54]
mov byte [esp + 0x270], 0xb
call fcn.0050bd60
lea ecx, [esp + 0x38]
mov byte [esp + 0x270], 9
call fcn.0050bd60
lea ecx, [esp + 0x70]
mov byte [esp + 0x270], 1
call fcn.0050bd60
mov edi, esi
jmp 0x4784f6
lea eax, [esp + 0x1dc]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00453420
mov dword [esp + 0x34], eax
sub edi, esi
lea edx, [esp + 0x1a4]
mov byte [esp + 0x270], 0x11
lea ecx, [edi - 1]
push ecx
push ebx
push edx
lea ecx, [esp + 0x20]
call fcn.0050c860
mov esi, eax
lea eax, [esp + 0x16c]
push ebp
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 0x12
call fcn.0050c830
lea ecx, [esp + 0x54]
lea edx, [esp + 0x134]
push ecx
push eax
push edx
mov byte [esp + 0x27c], 0x13
call fcn.0050c530
push esi
push eax
lea eax, [esp + 0x110]
mov byte [esp + 0x284], 0x14
push eax
call fcn.0050c530
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0xf8]
push ecx
push eax
push edx
mov byte [esp + 0x294], 0x15
call fcn.0050c530
add esp, 0x24
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 0x16
call fcn.0050bec0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x270], 0x15
call fcn.0050bd60
lea ecx, [esp + 0xfc]
mov byte [esp + 0x270], 0x14
call fcn.0050bd60
lea ecx, [esp + 0x134]
mov byte [esp + 0x270], 0x13
call fcn.0050bd60
lea ecx, [esp + 0x16c]
mov byte [esp + 0x270], 0x12
call fcn.0050bd60
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x270], 0x11
call fcn.0050bd60
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x270], 0xc
call fcn.0050bd60
lea ecx, [esp + 0x54]
call fcn.004cd910
add eax, edi
lea ecx, [esp + 0x54]
mov byte [esp + 0x270], 0xb
lea esi, [eax + ebp - 1]
call fcn.0050bd60
lea ecx, [esp + 0x38]
mov byte [esp + 0x270], 9
call fcn.0050bd60
lea ecx, [esp + 0x70]
mov byte [esp + 0x270], 1
call fcn.0050bd60
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0xa8]
call fcn.0050bc50
lea eax, [esp + 0x214]
push esi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 0x17
call fcn.0050c830
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x274], 0x18
call fcn.0050bec0
lea ecx, [esp + 0x214]
mov byte [esp + 0x270], 0x17
call fcn.0050bd60
inc esi
lea ecx, [esp + 0x24c]
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00453420
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 0x19
call fcn.0050bec0
lea ecx, [esp + 0x24c]
mov byte [esp + 0x270], 0x17
call fcn.0050bd60
mov edx, dword [esp + 0x27c]
lea eax, [esp + 0xa8]
push edx
push eax
mov ecx, edi
call fcn.0047d100
mov eax, dword [edi + 0xaa14]
test eax, eax
jne 0x478a61
mov eax, dword [edi + 0xaa10]
test eax, eax
jne 0x478ad5
lea ecx, [esp + 0xa8]
mov byte [esp + 0x270], 1
call fcn.0050bd60
jmp 0x4784f6
push 0x62fed4
mov ecx, edi
call fcn.00477f70
lea ecx, [esp + 0x14]
call fcn.0050cd90
push eax
mov ecx, edi
call fcn.00477f70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x478aa6
mov ecx, edi
call fcn.00449e20
mov dword [esp + 0x270], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0050bd60
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x264
ret 8
lea ecx, [esp + 0xa8]
mov byte [esp + 0x270], 1
call fcn.0050bd60
jmp 0x478aa6