Function at 0x4e1eb0
Capabilities:
Check for time delay via queryperformancecounter
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.005eced0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], esi
cmp byte [esi + 8], 0
je 0x4e1ed4
mov byte [esi + 8], 0
call fcn.004e23d0
cmp byte [esi + 9], 0
je 0x4e2116
cmp dword [esi + 0x2c], 0
je 0x4e2116
lea edi, [esi + 0x34]
mov byte [esi + 9], 0
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x4e1f11
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x4e1f0a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
add esi, 8
cmp esi, ebx
jne 0x4e1ef8
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x4e1f1b
mov dword [edi + 4], eax
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 0x30]
lea ebx, [esi + 0x30]
mov dword [ebp - 0x24], ebx
test ecx, ecx
je 0x4e1f37
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
mov ecx, dword [esi + 0x2c]
push ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
js 0x4e2116
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [ebx]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push edx
mov ecx, dword [edx]
call dword [ecx + 0xc]
test eax, eax
jne 0x4e2116
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jle 0x4e2116
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4e20e5
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4e20e8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x7342d8
push ecx
call dword [eax]
test eax, eax
jne 0x4e20e5
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4e20fc
mov eax, dword [ecx]
push ecx
call dword [eax + 0x3c]
cmp eax, 1
jne 0x4e20e5
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x4e20a1
push ecx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4e209b
push 0x800
lea eax, [ebp - 0x834]
push 0
push eax
call fcn.005c3040
add esp, 0xc
mov dword [ebp - 0x2c], 0x400
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
cmp eax, 1
jne 0x4e2094
lea eax, [ebp - 0x1034]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x1034]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e2064
sub ecx, edx
lea eax, [ebp - 0x834]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x1034]
push eax
call fcn.005cf8f5
add esp, 0xc
test eax, eax
jne 0x4e2094
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4e20ac
cmp eax, 0x889000d
jne 0x4e20e5
cmp dword [ebp - 0x20], ecx
je 0x4e20e5
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
cmp eax, dword [edi + 8]
je 0x4e20d2
mov dword [eax], edx
mov dword [eax + 4], ecx
add dword [edi + 4], 8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x4e20e8
lea ecx, [ebp - 0x34]
push ecx
push eax
mov ecx, edi
call fcn.0042c460
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x4e20e8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x4e20ff
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4e2109
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
inc ebx
cmp ebx, dword [ebp - 0x18]
jl 0x4e1f78
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 0x38]
xor al, al
mov ebx, dword [esi + 0x34]
mov byte [ebp - 5], al
mov dword [ebp - 0x10], ecx
cmp ebx, ecx
je 0x4e2297
mov edi, dword [ebp + 8]
nop
mov esi, dword [ebx]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
push ecx
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x4e2285
cmp dword [ebp - 0x2c], 1
jne 0x4e2285
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ecx
push 0x7342c8
push esi
call dword [eax]
test eax, eax
jne 0x4e2285
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4e2285
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x20]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov esi, eax
test edx, edx
je 0x4e219b
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov dword [ebp + 8], 0
test esi, esi
jne 0x4e2285
movss xmm0, dword [ebp - 0x20]
comiss xmm0, dword [0x739840]
jbe 0x4e2285
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp dword [edi + 0x24], esi
jne 0x4e21cc
mov eax, dword [edi + 0x3c]
cmp eax, dword [edi + 0x40]
je 0x4e2272
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x48]
call fcn.0042fa40
mov esi, dword [ebp - 0x18]
cmp esi, dword [edi + 0x4c]
je 0x4e2272
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 0x68]
lea eax, [ebp - 0xc]
push eax
call fcn.004dc820
mov ecx, dword [edi + 0x6c]
cmp dword [eax], ecx
je 0x4e2239
sub esp, 0x18
add esi, 0xc
mov ecx, esp
push esi
call fcn.004137f0
push 4
push 0
mov ecx, edi
call fcn.004ded20
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push esi
push eax
lea ecx, [edi + 0xb4]
call fcn.004e0da0
mov eax, dword [eax]
mov dword [eax + 0x20], 0x40400000
jmp 0x4e223c
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x1c]
call fcn.004dc820
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x20]
je 0x4e2272
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
cmp ecx, eax
je 0x4e2272
nop dword [eax + eax]
cmp dword [ecx], 4
jne 0x4e226b
cmp dword [ecx + 4], 0
je 0x4e2279
add ecx, 8
cmp ecx, eax
jne 0x4e2260
mov al, 1
mov byte [ebp - 5], al
jmp 0x4e2288
mov al, byte [ebp - 5]
test al, al
jne 0x4e2272
mov byte [ebp - 5], al
jmp 0x4e2288
mov al, byte [ebp - 5]
add ebx, 8
cmp ebx, dword [ebp - 0x10]
jne 0x4e2130
mov esi, dword [ebp - 0x28]
test al, al
je 0x4e22bb
lea ecx, [esi + 0x48]
mov dword [esi + 0x58], 0
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov al, byte [ebp - 5]
mov byte [esi + 0x40], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x40], 0
je 0x4e2331
movss xmm0, dword [0x7399b0]
comiss xmm0, dword [esi + 0x58]
jbe 0x4e232d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x34]
mov ecx, edi
sub ecx, dword [esi + 0x48]
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
mov edx, esi
sbb edx, dword [ebx + 0x4c]
call fcn.006d4970
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
cvtsd2ss xmm0, xmm0
movss dword [ebp + 8], xmm0
call fcn.006d4970
movss xmm1, dword [ebp + 8]
mov al, 1
cvtsd2ss xmm0, xmm0
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], esi
divss xmm1, xmm0
addss xmm1, dword [ebx + 0x58]
movss dword [ebx + 0x58], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 0x40], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4