Function at 0x435650
Capabilities:
Check os version
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x472faa
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x2ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x304]
mov dword fs:[0], eax
mov eax, dword [esp + 0x314]
mov ebx, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x435c04
cmp dword [ebx + 0xc4], 0
jbe 0x43576c
mov eax, dword [ebx + 0xc0]
mov eax, dword [eax]
mov esi, dword [ebx + 0xac]
mov ebp, eax
mov edi, dword [ebx + 0xc0]
mov eax, dword [ebx + 0xac]
test esi, esi
je 0x4356d5
cmp esi, eax
je 0x4356da
call fcn.004544a7
cmp ebp, edi
je 0x435768
test esi, esi
jne 0x435752
call fcn.004544a7
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4356f7
call fcn.004544a7
cmp dword [ebp + 8], 0
je 0x435735
test esi, esi
jne 0x435756
call fcn.004544a7
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x435712
call fcn.004544a7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x43575e
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x20]
push eax
push ecx
call fcn.004545c8
add esp, 8
test eax, eax
je 0x435c04
test esi, esi
jne 0x43575a
call fcn.004544a7
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x43574a
call fcn.004544a7
mov ebp, dword [ebp]
jmp 0x4356c1
mov eax, dword [esi]
jmp 0x4356ed
mov eax, dword [esi]
jmp 0x435708
mov eax, dword [esi]
jmp 0x435740
push 0x80004005
call fcn.00406db0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
push ecx
sub eax, 0x10
mov dword [esp + 0x3c], esp
mov esi, esp
call fcn.00406de0
lea edx, [esp + 0x24]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.00422ef0
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
mov dword [esp + 0x320], 0
mov eax, dword [esp + 0x34]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or esi, 0xffffffff
cmp eax, esi
jne 0x4357dc
mov dword [esp + 0x30c], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x435bf8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xc4]
cmp eax, 0xa
jb 0x43580b
mov dword [esp + 0x30c], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x435bf8
mov esi, dword [ebx + 0xc0]
mov edx, dword [esi + 4]
lea ebp, [ebx + 0xac]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.004374e0
mov ecx, ebp
mov edi, eax
call fcn.00437520
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [ebx + 0x90], 0
je 0x435bd9
lea esi, [ebx + 0x4c]
push 0xebdc
lea ecx, [esp + 0x48]
mov eax, esi
call fcn.004149f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30c], 1
call fcn.00416450
mov byte [esp + 0x30c], 3
mov eax, dword [esp + 0x44]
test eax, eax
je 0x435880
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x18]
test edi, edi
je 0x435ba6
mov dword [esp + 0x34], 0
push ecx
mov byte [esp + 0x310], 4
lea eax, [esp + 0x1c]
mov ecx, esp
mov edi, 0x47b520
mov dword [esp + 0x20], esp
call fcn.004458d0
push esi
mov edx, edi
lea ecx, [esp + 0x2c]
call fcn.00414df0
lea ecx, [esp + 0x34]
mov byte [esp + 0x30c], 5
call fcn.00433e10
mov byte [esp + 0x30c], 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4358e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x435b8d
mov eax, dword [ebp]
mov ecx, dword [eax + 0x5c]
push 0
push 0x10000000
push ebp
call ecx
mov eax, dword [ebx + 0x90]
test eax, eax
jne 0x435916
push 0x80004003
call fcn.00452d50
mov edx, dword [eax]
push ebp
push eax
mov eax, dword [edx + 0xf4]
call eax
push 1
push ecx
mov eax, esp
mov dword [eax], ebp
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], esp
push ebp
call edx
push 0xebdf
lea ecx, [esp + 0x48]
call fcn.00414a40
add esp, 0xc
lea ecx, [esp + 0x40]
mov byte [esp + 0x30c], 6
call fcn.00416490
mov byte [esp + 0x30c], 8
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x435970
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x4359e0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov edi, eax
call fcn.0040adf0
mov byte [esp + 0x310], 9
mov ecx, ebx
mov byte [esp + 0x310], 8
call fcn.00416cd0
mov edi, dword [esp + 0x20]
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0040adf0
mov byte [esp + 0x310], 0xa
mov ecx, ebx
mov byte [esp + 0x310], 8
call fcn.00437720
mov eax, dword [ebx]
mov ecx, dword [eax + 0x68]
push 0
push 0x4000
push ebx
call ecx
push 1
push 0xebdd
lea esi, [esp + 0x40]
mov eax, ebp
call fcn.00416d70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x30c], 0xb
call fcn.004318d0
mov byte [esp + 0x30c], 0xd
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, edi
je 0x435a1d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov esi, dword [esp + 0x2c]
cmp esi, edi
je 0x435ad9
push 0x2b4
lea ecx, [esp + 0x4c]
push edi
push ecx
call fcn.004560e0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0x4000
push 0x2b4
lea edx, [esp + 0x50]
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [esp + 0x24]
push ecx
push 0x47662c
push 2
mov dword [esp + 0x30], edi
call dword [sym.imp.SHELL32.dll_SHGetImageList]
mov dword [esp + 0x28], edi
cmp eax, edi
jne 0x435ad9
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x50]
push edi
push ecx
push eax
call edx
cmp dword [esp + 0x28], edi
je 0x435ad9
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.00445910
mov byte [esp + 0x30c], 0xe
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x435ac5
mov ecx, dword [esp + 0x28]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ecx
push 0x2713
push edi
call edx
mov byte [esp + 0x30c], 0xd
test edi, edi
je 0x435ad9
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
push 1
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], ebp
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
push 0xebde
lea ecx, [esp + 0x28]
call fcn.00414a40
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x30c], 0xf
call fcn.00425590
mov byte [esp + 0x30c], 0x11
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x435b27
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x24]
test edi, edi
je 0x435b4d
mov eax, dword [edi]
mov ecx, dword [eax + 0xfc]
push 0
push edi
call ecx
mov ecx, dword [esp + 0x30]
push edi
lea esi, [ecx + 0x60]
call fcn.0040c9d0
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x30c], 0xd
test edi, edi
je 0x435b61
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov byte [esp + 0x30c], 8
test esi, esi
je 0x435b75
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov byte [esp + 0x30c], 4
test ebx, ebx
je 0x435b89
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x30c], 3
test ebp, ebp
je 0x435ba2
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x90]
test eax, eax
jne 0x435bba
push 0x80004003
call fcn.00452d50
mov ecx, dword [eax]
mov edx, dword [ecx + 0x110]
push eax
call edx
mov byte [esp + 0x30c], 0
test edi, edi
je 0x435bd9
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov dword [esp + 0x30c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x304]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2ec]
xor ecx, esp
call fcn.0045300b
add esp, 0x2fc
ret 4