Function at 0x40bdd3
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
mov edi, edi
push ebp
sub esp, 0x60
mov eax, 0x42221f
call fcn.0041410c
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push dword [0x431724]
push dword [0x42f680]
push ebx
lea ecx, [ebp - 0x98]
call fcn.00409d77
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x68], bl
jne 0x40be19
push 0xfffffffffffffffd
pop ebx
jmp 0x40c316
lea ecx, [ebp - 0x98]
call fcn.0040d88d
mov byte [0x42f678], al
mov edi, ebx
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.0040b070
mov byte [ebp - 4], 2
call fcn.0040d21b
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00412c08
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
mov dword [0x431728], eax
mov esi, dword [0x42e194]
test esi, esi
jne 0x40be7c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x42e194]
mov eax, dword [0x42e190]
mov ecx, eax
not ecx
and ecx, 0x177
neg ecx
sbb ecx, ecx
neg ecx
lea edx, [eax + eax]
or edx, ecx
mov dword [0x42e190], edx
test esi, esi
jne 0x40bebf
push 0x323
mov eax, 0x42f76c
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [0x42e194]
mov edx, dword [0x42e190]
mov eax, edx
not eax
and eax, 0x177
neg eax
sbb eax, eax
neg eax
lea ecx, [edx + edx]
or ecx, eax
mov dword [0x42e190], ecx
test esi, esi
jne 0x40beea
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x42e190]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov edx, 0x80000000
and eax, edx
add eax, edx
shr ecx, 1
or ecx, eax
mov dword [0x42e190], ecx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov byte [ebp - 4], 3
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00411e74
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40bfc1
lea eax, [ebp - 0x1c0]
push eax
call fcn.00402826
pop ecx
push eax
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp + 4]
call fcn.004023b0
jmp 0x40bfba
lea eax, [ebp + 4]
mov edx, dword [ebp + 0x18]
cmp edx, 0x10
mov esi, dword [ebp + 4]
cmovae eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x40bfc7
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 4]
call fcn.00406a82
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp + 4]
call fcn.0040fd82
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x40bf7a
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 4]
lea eax, [ebp + 4]
cmp edx, 0x10
cmovae eax, esi
push 1
push eax
call fcn.00411434
pop ecx
pop ecx
test al, al
jne 0x40bff0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp + 4]
call fcn.0040231c
lea eax, [ebp - 0x40]
push eax
call fcn.00410145
push 6
pop eax
mov byte [ebp - 4], al
push 0x26
lea eax, [ebp - 0x58]
push eax
call fcn.00411cd8
add esp, 0xc
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x40c019
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 8
push 0x42f770
lea ecx, [ebp - 0x28]
call fcn.004013c9
mov byte [ebp - 4], 9
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.004016a6
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004016a6
push dword [ebp + 0x6c]
lea ecx, [ebp - 0x28]
call fcn.004013c9
mov byte [ebp - 4], 0xa
push 0x42f780
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.004016a6
push 0x1a
lea eax, [ebp - 0x58]
push eax
call fcn.00411cd8
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x40c0cc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.004013c9
mov byte [ebp - 4], 0xd
push 0x42f788
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.004016a6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004016a6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004013c9
mov byte [ebp - 4], 0xf
push 0x42f790
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.004016a6
push 0x42f79c
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 0x11
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x34]
call fcn.004016a6
push 0x1c
lea eax, [ebp - 0x58]
push eax
call fcn.00411cd8
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 0x10
jb 0x40c1b5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.004013c9
mov byte [ebp - 4], 0x13
push 0x42f7a4
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
call fcn.004016a6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004016a6
push 0x42f7b4
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004016a6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.004016a6
mov byte [ebp - 4], 2
lea ecx, [ebp + 4]
call fcn.004016a6
lea ecx, [ebp - 0x98]
call fcn.0040d638
test al, al
je 0x40c32c
mov eax, dword [0x42e190]
mov ecx, eax
not ecx
and ecx, 0x177
neg ecx
sbb ecx, ecx
neg ecx
add eax, eax
or eax, ecx
mov dword [0x42e190], eax
mov eax, dword [ebp - 0x8c]
mov esi, dword [eax + 4]
test esi, esi
je 0x40c32c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c2ad
mov esi, eax
test esi, esi
jne 0x40c2a0
test esi, esi
je 0x40c32c
test dword [esi], 0x10000
je 0x40c32c
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x40c2f8
lea eax, [ecx + 0xd0]
push eax
push 4
call fcn.0040e6e9
cmp dword [eax], ebx
je 0x40c2f8
mov ecx, dword [0x430e24]
lea eax, [ecx + 0xd0]
push eax
push 4
call fcn.0040e6e9
push 4
push 0x42f7bc
push dword [esi + 0x1c]
push ebx
call dword [eax]
jmp 0x40c2fa
mov eax, ebx
cmp eax, 6
je 0x40c32c
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.0040b20d
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x50]
call fcn.0040b696
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0040a13e
mov eax, ebx
jmp 0x40c9aa
mov byte [ebp - 4], 0x16
mov dword [ebp + 0x30], ebx
mov eax, dword [ebp - 0x8c]
mov esi, dword [eax + 4]
mov eax, ebx
mov dword [ebp], eax
mov ecx, dword [0x42e194]
test esi, esi
je 0x40c595
inc eax
mov dword [ebp + 0x4c], eax
push eax
lea ecx, [ebp + 0x50]
call fcn.0040d7e7
push dword [ebp]
lea ecx, [ebp + 0x50]
call fcn.0040b6e6
mov edi, eax
mov eax, dword [ebp + 0x4c]
mov dword [edi + 4], eax
mov dword [edi], esi
test dword [esi], 0x800
je 0x40c3c5
call fcn.0040f1b4
test eax, eax
jne 0x40c38b
call fcn.0040f24f
test eax, eax
je 0x40c3c5
or dword [esi], 0x80000000
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00412c08
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
call fcn.004016a6
jmp 0x40c57e
test dword [esi], 0x1000
je 0x40c415
mov eax, dword [0x42e194]
mov ecx, 0x157
xor eax, ecx
mov dword [0x42e194], eax
or eax, ecx
mov dword [0x42e194], eax
shl eax, 9
mov dword [0x42e194], eax
or eax, 1
mov dword [0x42e194], eax
add edi, 0x1c
push 0x42f7c8
call fcn.00402826
pop ecx
push eax
push 0x42f7c8
mov ecx, edi
call fcn.004023b0
jmp 0x40c558
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
lea eax, [ebp + 0x1c]
push eax
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x98]
call fcn.0040a596
mov byte [ebp - 4], 0x18
lea ecx, [edi + 0x1c]
mov dword [ebp + 0x60], ecx
push eax
call fcn.0040fd82
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x58]
call fcn.004016a6
cmp dword [edi + 0x2c], ebx
jne 0x40c54d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42f7cc
push edi
call fcn.0040d650
add esp, 0xc
test byte [esi], 0x20
je 0x40c48b
lea ecx, [ebp - 0xbc]
call fcn.00413fb7
push 0x42be3c
lea eax, [ebp - 0xbc]
push eax
call fcn.004140ae
mov eax, dword [0x42e194]
test eax, eax
jne 0x40c4c0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42e194]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jne 0x40c4c6
push 0x2bf
mov eax, 0x42f7e8
push eax
push eax
push ebx
call edi
mov eax, dword [0x42e194]
jmp 0x40c4c6
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
inc eax
mov dword [0x42e194], eax
mov ecx, 0x38f
cmove eax, ecx
mov dword [0x42e194], eax
shl eax, 0xd
mov dword [0x42e194], eax
or eax, 1
mov dword [0x42e194], eax
shl eax, 0x1c
mov dword [0x42e194], eax
or eax, 1
mov dword [0x42e194], eax
jne 0x40c50f
push 0x14b
mov eax, 0x42f7ec
push eax
push eax
push ebx
call edi
mov eax, dword [0x42e194]
push 0x5f
pop ecx
cmp eax, ecx
cmove eax, ecx
mov dword [0x42e194], eax
add ecx, 0x3b
cmp eax, ecx
cmove eax, ecx
mov dword [0x42e194], eax
test eax, eax
jne 0x40c541
push 0x259
mov eax, 0x42f7f0
push eax
push eax
push ebx
call edi
mov eax, dword [0x42e194]
or eax, 0x272
mov dword [0x42e194], eax
jmp 0x40c555
mov eax, dword [esi]
and eax, 0x10
or dword [ebp + 0x30], eax
mov edi, dword [ebp + 0x60]
push edi
lea ecx, [ebp + 0x1c]
call fcn.00412c08
mov ecx, dword [0x42e194]
test ecx, ecx
jne 0x40c584
push 0x1f2
mov eax, 0x42f7f4
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x42e194]
mov esi, dword [esi + 0xc]
mov eax, dword [ebp + 0x4c]
mov dword [ebp], eax
mov edi, dword [ebp + 0x50]
jmp 0x40c347
mov dword [ebp + 0x5c], ebx
mov esi, edi
mov dword [ebp + 0x5c], esi
mov eax, dword [ebp + 0x54]
cmp esi, eax
je 0x40c779
shl ecx, 0x18
mov dword [0x42e194], ecx
or ecx, 1
mov dword [0x42e194], ecx
or ecx, 0x370
mov dword [0x42e194], ecx
or ecx, 0x216
mov dword [0x42e194], ecx
push 6
pop eax
cmp ecx, eax
cmove ecx, eax
mov dword [0x42e194], ecx
xor ecx, 0x2e6
mov dword [0x42e194], ecx
or ecx, 0x2e6
mov dword [0x42e194], ecx
mov eax, dword [esi]
test byte [eax], 2
je 0x40c771
cmp dword [esi + 0x2c], ebx
je 0x40c771
test dword [eax], 0x80000000
jne 0x40c771
test dword [eax], 0x800
je 0x40c6b0
call fcn.0040f1b4
test eax, eax
jne 0x40c76b
mov ecx, dword [0x42e190]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov edx, 0x80000000
and eax, edx
add eax, edx
shr ecx, 1
mov dword [0x42e190], ecx
or ecx, eax
mov dword [0x42e190], ecx
mov eax, dword [0x42e194]
mov edx, 0x1f7
xor eax, edx
mov dword [0x42e194], eax
or eax, edx
mov dword [0x42e194], eax
jne 0x40c684
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x42e190]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
neg eax
add ecx, ecx
mov dword [0x42e190], ecx
or ecx, eax
mov dword [0x42e190], ecx
call fcn.0040f24f
test eax, eax
jne 0x40c76b
push 1
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [esi]
push dword [eax + 0x1c]
lea eax, [ebp - 0x58]
push eax
call fcn.004105e1
add esp, 0x10
mov byte [ebp - 4], 0x19
push eax
lea ecx, [esi + 0x34]
call fcn.0040fd82
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x58]
call fcn.004016a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call fcn.0040ca09
pop ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d8f2
mov dword [ebp + 0x4c], eax
mov byte [ebp - 4], 0x1a
push dword [esi + 4]
lea eax, [ebp - 0x28]
push eax
call fcn.0040d8a5
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 0x1b
push 0x42f7f8
lea ecx, [ebp + 0x34]
call fcn.004013c9
mov byte [ebp - 4], 0x1c
push dword [ebp + 0x4c]
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.0040505e
push eax
lea ecx, [ebp + 0x1c]
call fcn.00413010
mov byte [ebp - 4], 0x1b
lea ecx, [ebp + 0x34]
call fcn.004016a6
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x28]
call fcn.004016a6
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
call fcn.004016a6
xor ebx, ebx
mov ecx, dword [0x42e194]
add esi, 0x50
jmp 0x40c59a
cmp dword [ebp + 0x30], 0
je 0x40c7e1
mov esi, edi
mov dword [ebp + 0x5c], esi
cmp esi, eax
je 0x40c7b1
cmp dword [esi + 8], 0
je 0x40c7ac
mov eax, dword [esi]
test byte [eax], 8
je 0x40c7a9
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x54]
add esi, 0x50
jmp 0x40c781
mov dword [ebp + 0x5c], edi
cmp edi, eax
je 0x40c7e1
mov eax, dword [edi]
test byte [eax], 0x10
je 0x40c7d6
cmp dword [edi + 0x2c], ebx
je 0x40c7d6
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 0x10
jb 0x40c7cf
mov eax, dword [eax]
push eax
call fcn.0040b7c3
pop ecx
add edi, 0x50
mov dword [ebp + 0x5c], edi
mov eax, dword [ebp + 0x54]
jmp 0x40c7b4
mov dword [ebp - 4], 2
mov esi, ebx
jmp 0x40c925
call fcn.0040feaf
mov edx, dword [0x42e194]
or edx, 0x373
mov dword [0x42e194], edx
mov ecx, dword [0x42e190]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
and eax, 0x80000000
add eax, 0x80000000
shr ecx, 1
or ecx, eax
mov dword [0x42e190], ecx
test edx, edx
jne 0x40c974
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x42e194]
or edx, 1
mov dword [0x42e194], edx
call fcn.00412f59
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.0040b20d
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x50]
call fcn.0040b696
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0040a13e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret