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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4421cb
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [str.GetTempPathA]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [str.GetTempPathA]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov byte [eax], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push 0xf
pop edi
mov dword [esp + 0x1b8], ebx
push ebx
lea ecx, [esp + 0x104]
mov dword [esp + 0x11c], edi
call fcn.00408f84
push ebx
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe4], edi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x120]
mov dword [esp + 0x138], edi
call fcn.00408f84
push ebx
lea ecx, [esp + 0xe8]
mov dword [esp + 0x100], edi
call fcn.00408f84
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x1bc], 4
call fcn.0041dd9a
pop ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.00415b8d
test eax, eax
jbe 0x41e218
push dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41df97
mov eax, dword [eax + 4]
jmp 0x41df9a
add eax, 4
push ebx
push eax
mov esi, 0x405cac
call fcn.0041dc14
test al, al
pop ecx
pop ecx
jne 0x41e2c9
push dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41dfc8
mov eax, dword [eax + 4]
jmp 0x41dfcb
add eax, 4
push ebx
push eax
mov esi, 0x405cb0
call fcn.0041dc14
test al, al
pop ecx
pop ecx
jne 0x41e2c9
push dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41dff9
mov eax, dword [eax + 4]
jmp 0x41dffc
add eax, 4
push ebx
push eax
mov esi, 0x405cb4
call fcn.0041dc14
test al, al
pop ecx
pop ecx
jne 0x41e2c9
push dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41e02a
mov eax, dword [eax + 4]
jmp 0x41e02d
add eax, 4
push 3
push eax
mov esi, 0x405cbc
call fcn.0041dc14
test al, al
pop ecx
pop ecx
push dword [esp + 0x18]
lea esi, [esp + 0x24]
je 0x41e059
call fcn.00408d84
lea ecx, [esp + 0x100]
jmp 0x41e10b
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41e069
mov eax, dword [eax + 4]
jmp 0x41e06c
add eax, 4
push 0xd
push eax
mov esi, 0x405cc0
call fcn.0041dc14
test al, al
pop ecx
pop ecx
push dword [esp + 0x18]
lea esi, [esp + 0x24]
je 0x41e095
call fcn.00408d84
lea ecx, [esp + 0xc8]
jmp 0x41e10b
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41e0a5
mov eax, dword [eax + 4]
jmp 0x41e0a8
add eax, 4
push 8
push eax
mov esi, 0x405cd0
call fcn.0041dc14
test al, al
pop ecx
pop ecx
push dword [esp + 0x18]
lea esi, [esp + 0x24]
je 0x41e0d1
call fcn.00408d84
lea ecx, [esp + 0xe4]
jmp 0x41e10b
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41e0e1
mov eax, dword [eax + 4]
jmp 0x41e0e4
add eax, 4
push 4
push eax
mov esi, 0x405cdc
call fcn.0041dc14
test al, al
pop ecx
pop ecx
push dword [esp + 0x18]
lea esi, [esp + 0x24]
je 0x41e119
call fcn.00408d84
lea ecx, [esp + 0x11c]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00408fa0
jmp 0x41e201
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41e129
mov eax, dword [eax + 4]
jmp 0x41e12c
add eax, 4
push 0xb
push eax
mov esi, 0x405ce4
call fcn.0041dc14
test al, al
pop ecx
pop ecx
je 0x41e2b5
mov eax, dword [esp + 0x38]
push ebx
lea ecx, [esp + 0xb0]
mov byte [eax], 1
mov dword [esp + 0xc8], edi
call fcn.00408f84
push dword [esp + 0x18]
lea esi, [esp + 0x24]
mov byte [esp + 0x1bc], 5
call fcn.00408d84
cmp dword [eax + 0x18], 0x10
jb 0x41e17e
mov eax, dword [eax + 4]
jmp 0x41e181
add eax, 4
push eax
lea ecx, [esp + 0x174]
call fcn.00409351
lea eax, [esp + 0x170]
push eax
lea ebx, [esp + 0xb0]
mov byte [esp + 0x1bc], 6
call fcn.0041dc5d
pop ecx
push 0
push 1
lea ecx, [esp + 0x178]
mov byte [esp + 0x1c0], 5
call fcn.00408f39
cmp dword [esp + 0xc4], 0x10
mov eax, dword [esp + 0xb0]
jae 0x41e1db
lea eax, [esp + 0xb0]
push dword [esp + 0x34]
push eax
call fcn.00425302
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1c0], 4
call fcn.00408f39
xor ebx, ebx
inc dword [esp + 0x18]
lea eax, [esp + 0x20]
call fcn.00415b8d
cmp dword [esp + 0x18], eax
jb 0x41df7f
cmp dword [esp + 0x114], ebx
jne 0x41e2d6
cmp dword [esp + 0xdc], ebx
jne 0x41e2d6
cmp dword [esp + 0xf8], ebx
jne 0x41e2d6
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xec]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0x124]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0xd0]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0x108]
call fcn.00408f39
lea esi, [esp + 0x20]
call fcn.00416083
xor al, al
jmp 0x41ebb3
push 0x404fec
push dword [esp + 0x34]
call fcn.0040b7e5
push dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00408d84
mov esi, dword [esp + 0x30]
push 0xffffffffffffffff
push ebx
call fcn.0040b9c0
inc dword [esp + 0x18]
lea eax, [esp + 0x20]
call fcn.00415b8d
cmp dword [esp + 0x18], eax
jb 0x41e28a
jmp 0x41e218
call fcn.0041dd0e
xor esi, esi
inc esi
jmp 0x41eb70
push ebx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], edi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x154], edi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x158]
mov dword [esp + 0x170], edi
call fcn.00408f84
mov byte [esp + 0x1b8], 9
cmp dword [esp + 0x114], ebx
mov byte [esp + 0x1f], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x17], bl
je 0x41e34a
lea eax, [esp + 0x100]
push eax
lea ebx, [esp + 0xb0]
call fcn.0041dc5d
pop ecx
mov byte [esp + 0x1f], al
xor ebx, ebx
cmp dword [esp + 0xdc], ebx
je 0x41e36e
lea eax, [esp + 0xc8]
push eax
lea ebx, [esp + 0x13c]
call fcn.0041dc5d
pop ecx
mov byte [esp + 0x1e], al
xor ebx, ebx
cmp dword [esp + 0xf8], ebx
je 0x41e392
lea eax, [esp + 0xe4]
push eax
lea ebx, [esp + 0x158]
call fcn.0041dc5d
pop ecx
mov byte [esp + 0x17], al
xor ebx, ebx
cmp byte [esp + 0x1f], bl
jne 0x41e526
cmp byte [esp + 0x1e], bl
jne 0x41e526
cmp byte [esp + 0x17], bl
jne 0x41e526
push 7
pop eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1bc], 0x19
call fcn.0041b91e
cmp dword [esp + 0xa8], ebx
pop ecx
mov esi, 0x3fc
jne 0x41e428
push esi
lea ecx, [esp + 0x94]
call fcn.0042730a
pop ecx
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0041b942
cmp dword [esp + 0x58], ebx
pop ecx
pop ecx
jne 0x41e446
push esi
lea ecx, [esp + 0x40]
call fcn.0042730a
pop ecx
lea ecx, [esp + 0x17]
call fcn.0041b970
cmp byte [esp + 0x17], bl
mov ecx, dword [esp + 0x40]
je 0x41e485
cmp dword [esp + 0x54], 8
jae 0x41e464
lea ecx, [esp + 0x40]
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x41e47c
lea eax, [esp + 0x94]
push ecx
push eax
push 0x41a
jmp 0x41e4af
cmp dword [esp + 0x54], 8
jae 0x41e490
lea ecx, [esp + 0x40]
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x41e4a8
lea eax, [esp + 0x94]
push ecx
push eax
push 0x3fb
lea ecx, [esp + 0x64]
call fcn.0042730a
add esp, 0xc
lea ecx, [esp + 0x74]
call fcn.004275f3
cmp dword [esp + 0x8c], 8
mov ecx, dword [esp + 0x78]
jae 0x41e4d6
lea ecx, [esp + 0x78]
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x41e4e5
lea eax, [esp + 0x5c]
push ebx
push ecx
push eax
push ebx
call dword [0x44975c]
xor edi, edi
push ebx
inc edi
push edi
lea esi, [esp + 0x7c]
call fcn.00409921
push ebx
push edi
lea esi, [esp + 0x44]
call fcn.00409921
push ebx
push edi
lea esi, [esp + 0x98]
call fcn.00409921
push ebx
push edi
lea esi, [esp + 0x60]
call fcn.00409921
jmp 0x41eb43
xor ebx, ebx
xor edi, edi
call fcn.00424629
test al, al
push 0xf
pop esi
je 0x41e631
push edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], esi
call fcn.00408f84
push edi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], esi
call fcn.00408f84
push 0x3fd
lea esi, [esp + 0x78]
mov byte [esp + 0x1bc], 0xb
call fcn.00423933
pop ecx
lea eax, [esp + 0x58]
push eax
call fcn.00423d6b
cmp dword [esp + 0x74], 0x10
pop ecx
mov ecx, dword [esp + 0x5c]
jae 0x41e58a
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x41e59c
lea eax, [esp + 0x78]
push edi
push ecx
push eax
push edi
call dword [fcn.004012ec]
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [esp + 0x60]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0x7c]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0x15c]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0x140]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0xb4]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0xec]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0x124]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0xd0]
call fcn.00408f39
push edi
push ebx
lea ecx, [esp + 0x108]
call fcn.00408f39
lea esi, [esp + 0x20]
call fcn.00416083
mov al, bl
jmp 0x41ebb3
xor ebx, ebx
cmp dword [esp + 0x130], ebx
push ebx
jne 0x41e8b0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], esi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], esi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x190]
mov dword [esp + 0x1a8], esi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], esi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
call fcn.00408f84
lea eax, [esp + 0x18c]
push eax
mov byte [esp + 0x1bc], 0x10
call fcn.00423d6b
pop ecx
mov dword [esp + 0x188], 7
mov dword [esp + 0x184], ebx
mov word [esp + 0x174], bx
lea edi, [esp + 0x90]
mov byte [esp + 0x1b8], 0x11
call fcn.00423d03
mov eax, dword [esp + 0x94]
push 0x10
pop esi
cmp dword [esp + 0xa8], esi
jae 0x41e6f3
lea eax, [esp + 0x94]
lea ecx, [esp + 0x170]
push ecx
push eax
call fcn.00425302
pop ecx
pop ecx
lea ecx, [esp + 0x58]
call fcn.00424916
cmp dword [esp + 0x70], esi
mov ecx, dword [esp + 0x5c]
jae 0x41e71a
lea ecx, [esp + 0x5c]
call fcn.004249ed
cmp dword [esp + 0x1a4], esi
mov eax, dword [esp + 0x190]
jae 0x41e736
lea eax, [esp + 0x190]
cmp dword [esp + 0x70], esi
mov edi, dword [esp + 0x5c]
jae 0x41e744
lea edi, [esp + 0x5c]
push ebx
lea ecx, [esp + 0x78]
push ecx
mov ebx, eax
xor esi, esi
call fcn.00424d98
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
pop ecx
pop ecx
jae 0x41e76a
lea eax, [esp + 0x78]
cmp dword [esp + 0xa8], 0x10
mov ecx, dword [esp + 0x94]
jae 0x41e782
lea ecx, [esp + 0x94]
push eax
call fcn.00424b5e
pop ecx
mov edi, 0x404fec
push edi
lea ecx, [esp + 0x40]
call fcn.00409373
xor ebx, ebx
cmp dword [esp + 0x114], ebx
je 0x41e7bf
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x108]
lea esi, [esp + 0x44]
call fcn.0040b9c0
push edi
mov eax, esi
push eax
call fcn.0040b7e5
cmp dword [esp + 0xdc], ebx
je 0x41e7e4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xd0]
lea esi, [esp + 0x44]
call fcn.0040b9c0
push edi
mov eax, esi
push eax
call fcn.0040b7e5
cmp dword [esp + 0xf8], ebx
je 0x41e809
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xec]
lea esi, [esp + 0x44]
call fcn.0040b9c0
push edi
mov eax, esi
push eax
call fcn.0040b7e5
push 0x405cf0
lea eax, [esp + 0x40]
push eax
call fcn.0040b7e5
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x98]
lea esi, [esp + 0x44]
call fcn.0040b9c0
push 0x404fb4
mov eax, esi
push eax
call fcn.0040b7e5
cmp dword [esp + 0x54], 0x10
mov ecx, dword [esp + 0x40]
jae 0x41e847
lea ecx, [esp + 0x40]
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x41e859
lea eax, [esp + 0x78]
push ecx
push eax
call fcn.004239b0
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea esi, [esp + 0x178]
call fcn.00409921
push ebx
push edi
lea ecx, [esp + 0x44]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x98]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x194]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x7c]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x60]
jmp 0x41eb3c
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], esi
call fcn.00408f84
lea eax, [esp + 0x11c]
push eax
lea ebx, [esp + 0x94]
mov byte [esp + 0x1bc], 0x12
call fcn.0041dc5d
xor ebx, ebx
pop ecx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov byte [esp + 0x1b8], 0x13
cmp dword [esp + 0xa8], 0x10
mov eax, dword [esp + 0x94]
jae 0x41e913
lea eax, [esp + 0x94]
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.00425302
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
push 8
pop edi
cmp dword [esp + 0x54], edi
jae 0x41e931
lea ecx, [esp + 0x40]
push ebx
push 2
push ebx
call fcn.00425f2c
add esp, 0xc
cmp eax, 3
je 0x41ea64
push ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], esi
call fcn.00408f84
push ebx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], esi
call fcn.00408f84
push 0x3fe
lea esi, [esp + 0x78]
mov byte [esp + 0x1bc], 0x15
call fcn.00423933
pop ecx
lea eax, [esp + 0x58]
push eax
call fcn.00423d6b
cmp dword [esp + 0x74], 0x10
pop ecx
mov ecx, dword [esp + 0x5c]
jae 0x41e996
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x41e9a8
lea eax, [esp + 0x78]
push 0x24
push ecx
push eax
push ebx
call dword [fcn.004012ec]
cmp eax, 6
push ebx
lea ecx, [esp + 0x5c]
je 0x41ea49
xor edi, edi
inc edi
push edi
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x7c]
call fcn.00408f39
push ebx
push edi
lea esi, [esp + 0x44]
call fcn.00409921
push ebx
push edi
lea ecx, [esp + 0x98]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x15c]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x140]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0xb4]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0xec]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0x124]
call fcn.00408f39
push ebx
push edi
lea ecx, [esp + 0xd0]
call fcn.00408f39
push ebx
push edi
jmp 0x41eb9c
push 1
call fcn.00408f39
push ebx
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1c0], 0x13
call fcn.00408f39
cmp dword [esp + 0x114], ebx
je 0x41eaa7
cmp byte [esp + 0x1f], bl
je 0x41eaa7
cmp dword [esp + 0xc4], 0x10
mov ebx, dword [esp + 0xb0]
jae 0x41ea8b
lea ebx, [esp + 0xb0]
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x41ea99
lea eax, [esp + 0x40]
push eax
mov ecx, 0x405a4c
call fcn.0041c25b
pop ecx
xor ebx, ebx
cmp dword [esp + 0xdc], ebx
je 0x41eaea
cmp byte [esp + 0x1e], bl
je 0x41eaea
cmp dword [esp + 0x150], 0x10
mov ebx, dword [esp + 0x13c]
jae 0x41eace
lea ebx, [esp + 0x13c]
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x41eadc
lea eax, [esp + 0x40]
push eax
mov ecx, 0x405a5c
call fcn.0041c25b
pop ecx
xor ebx, ebx
cmp dword [esp + 0xf8], ebx
je 0x41eb26
cmp byte [esp + 0x17], bl
je 0x41eb26
cmp dword [esp + 0x16c], 0x10
mov eax, dword [esp + 0x158]
jae 0x41eb11
lea eax, [esp + 0x158]
cmp dword [esp + 0x54], edi
mov esi, dword [esp + 0x40]
jae 0x41eb1f
lea esi, [esp + 0x40]
push eax
call fcn.0041c2fa
pop ecx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00409921
push ebx
push 1
lea ecx, [esp + 0x98]
call fcn.00408f39
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x15c]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0x140]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0xb4]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0xec]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0x124]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0xd0]
call fcn.00408f39
push ebx
push esi
lea ecx, [esp + 0x108]
call fcn.00408f39
lea esi, [esp + 0x20]
call fcn.00416083
mov al, 1
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0042b8b7
mov esp, ebp
pop ebp
ret