Function at 0x57674794
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x57674c41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, dword [0x57666e4c]
call fcn.57666450
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0
je 0x57674c0d
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2c], 0
jne 0x57674c0d
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [0x5768eda0]
call fcn.57670338
lea edx, [ebp - 0x124]
mov eax, dword [0x5768ed80]
call fcn.57667e90
push dword [ebp - 0x124]
push 0x57674c58
push dword [ebp - 0xc]
lea eax, [ebp - 0x120]
mov edx, 3
call fcn.57665858
mov eax, dword [ebp - 0x120]
call fcn.57665998
push eax
call fcn.5766fe1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x57674c0d
xor edx, edx
push ebp
push 0x57674c06
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x57674be8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
lea edx, [ebp - 0x12c]
mov eax, dword [0x5768ed98]
call fcn.57667e90
push dword [ebp - 0x12c]
push 0x57674c58
push dword [ebp - 0xc]
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.57665858
mov eax, dword [ebp - 0x128]
call fcn.57665998
push eax
call fcn.5767014c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x57674b86
xor edx, edx
push ebp
push 0x57674b7f
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x57674b68
xor edx, edx
push ebp
push 0x57674b61
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
lea ecx, [esi + 0x16]
cmp edx, dword [ecx]
jne 0x5767493f
mov edx, dword [esi + 0xc]
add edx, 4
mov dx, word [edx]
lea ecx, [esi + 0x16]
add ecx, 4
cmp dx, word [ecx]
je 0x57674b4a
mov dword [ebp - 0x1c], eax
call fcn.5766ccd8
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
je 0x57674965
mov eax, dword [esi + 0xc]
mov edx, 8
call fcn.5766cdb8
test al, al
je 0x57674b4a
lea edx, [ebp - 0x11c]
mov eax, dword [esi + 0xc]
call fcn.5766a6b8
mov eax, dword [ebp - 8]
cmp byte [eax + 0x34], 0
je 0x576749ad
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x576749ad
mov eax, dword [ebp - 0xfc]
sub eax, dword [ebp - 0x100]
cmp eax, 6
jae 0x576749ad
push ebp
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov eax, dword [esi + 0xc]
call fcn.5767450c
pop ecx
test al, al
jne 0x576749b1
xor eax, eax
jmp 0x576749b3
mov al, 1
mov byte [ebp - 0x1e], al
cmp byte [ebp - 0x1e], 0
je 0x57674a56
mov byte [ebp - 0x1f], 0xf4
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x1f]
mov ecx, 1
call fcn.5766fa00
test al, al
jne 0x576749e0
mov eax, dword [esi + 0xc]
mov dl, byte [ebp - 0x1f]
mov byte [eax], dl
mov eax, dword [esi + 0xc]
mov edx, 1
call fcn.57674420
lea eax, [ebp - 0x24]
call fcn.576741e4
mov eax, dword [ebp - 0x24]
call fcn.57666290
test eax, eax
jl 0x57674a56
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0xf8], 0x10001
lea eax, [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_GetThreadContext
test eax, eax
je 0x57674a44
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0x40]
jae 0x57674a44
mov eax, dword [esi + 0xc]
add eax, 6
cmp eax, dword [ebp - 0x40]
jbe 0x57674a44
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x57674a07
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_CloseHandle
inc edi
dec dword [ebp - 0x2c]
jne 0x57674a07
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x16]
mov ecx, 6
call fcn.5766fa00
test al, al
jne 0x57674a7a
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x16]
mov dword [eax], edx
mov dx, word [esi + 0x1a]
mov word [eax + 4], dx
mov eax, dword [esi + 0xc]
mov edx, 6
call fcn.57674420
cmp byte [ebp - 0x1e], 0
je 0x57674b2a
mov dl, 1
mov eax, dword [0x5768ec84]
call fcn.5766bb90
mov ebx, eax
lea eax, [ebx + 0xe]
lea edx, [ebx + 0xa]
add eax, dword [edx]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
call fcn.576741e4
mov eax, dword [ebp - 0x24]
call fcn.57666290
test eax, eax
jl 0x57674b2a
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0xf8], 0x10001
lea eax, [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_GetThreadContext
test eax, eax
je 0x57674b18
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0x40]
je 0x57674b0f
cmp ebx, dword [ebp - 0x40]
ja 0x57674afa
lea eax, [ebx + 0xa]
cmp eax, dword [ebp - 0x40]
jae 0x57674b0f
mov eax, dword [ebp - 0x40]
and eax, 0xffff0000
mov edx, dword [ebp - 0x28]
and edx, 0xffff0000
cmp eax, edx
jne 0x57674b18
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x57674ac4
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_CloseHandle
inc edi
dec dword [ebp - 0x2c]
jne 0x57674ac4
cmp byte [ebp - 0x1d], 0
je 0x57674b3d
mov eax, dword [esi + 0xc]
mov edx, 8
call fcn.5766ce48
cmp byte [ebp - 0x1e], 0
je 0x57674b4a
push ebp
call fcn.57674710
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57674b68
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57674b86
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
cmp dword [ebp - 0x1c], 0
je 0x57674bd1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x1c]
je 0x57674bd1
mov eax, dword [ebp - 8]
cmp byte [eax + 0x36], 0
je 0x57674bad
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.576707cc
jmp 0x57674baf
xor eax, eax
mov edx, dword [ebp - 8]
cmp byte [edx + 0x36], 0
je 0x57674bbc
test eax, eax
je 0x57674bd1
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x1c]
call fcn.5767091c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57674bef
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57674c48
lea eax, [ebp - 0x12c]
mov edx, 4
call fcn.5766552c
lea eax, [ebp - 0x24]
mov edx, dword [0x57666e4c]
call fcn.57666450
lea eax, [ebp - 0xc]
call fcn.57665508
ret