Function at 0x50b1f0
Capabilities:
Check for time delay via gettickcount
Read file via mapping

Disassembly:
sub esp, 0x18
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
cmp dword [esp + 0x20], esi
jne 0x50b21b
xor eax, eax
pop esi
add esp, 0x18
ret
push edi
cmp dword [0x74bd70], esi
jne 0x50b297
mov edi, 1
mov dword [0x74bd70], edi
cmp dword [0x74bd6c], esi
jne 0x50b297
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x74bd68], eax
cmp eax, esi
jne 0x50b262
push str.Kernel32.dll
call fcn.004f4be0
mov dword [0x74bd68], eax
cmp eax, esi
je 0x50b297
mov dword [esp + 0x10], edi
push str.GetTickCount64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x74bd6c], eax
cmp eax, esi
jne 0x50b297
cmp dword [esp + 0x10], esi
je 0x50b297
mov eax, dword [0x74bd68]
cmp eax, esi
je 0x50b297
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x74bd68], esi
mov edi, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
cmp ebx, 1
jne 0x50b318
push esi
lea eax, [esp + 0x14]
push eax
call fcn.00507770
mov ecx, dword [esp + 0x10]
push ecx
push 0x18
push str.eScanDateTimeMapObject
call fcn.004e9900
mov esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x50b32d
mov edx, dword [esp + 0x34]
or edx, ebp
je 0x50b2e5
test edi, edi
jne 0x50b32d
cmp dword [esp + 0x10], 0
je 0x50b2f9
lea eax, [esp + 0x10]
push eax
call fcn.004d8d20
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call fcn.004dca10
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
push 4
push str.eScanDateTimeMapObject
call fcn.004eaca0
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
jne 0x50b337
cmp dword [esp + 0x10], esi
jmp 0x50b38c
cmp ebx, 1
jne 0x50b46a
push 0x18
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x50b3b0
cmp dword [0x74bd6c], ebx
jne 0x50b37e
cmp dword [esp + 0x18], ebx
je 0x50b37e
mov eax, dword [0x74bd68]
cmp eax, ebx
je 0x50b37e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x74bd68], ebx
lea edx, [esp + 0x14]
push edx
call fcn.004dca10
cmp dword [esp + 0x10], ebx
je 0x50b39b
lea eax, [esp + 0x10]
push eax
call fcn.004d8d20
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
mov edx, eax
or edx, ebp
je 0x50b419
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebp
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x50b4ed
mov eax, dword [0x74bd6c]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x50b4b5
call eax
jmp 0x50b4bd
mov eax, dword [0x74bd6c]
cmp eax, ebx
je 0x50b429
call eax
mov dword [esi + 0x14], edx
jmp 0x50b432
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x14], ebx
push esi
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esi]
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
cmp dword [esp + 0x10], ebx
je 0x50b512
lea eax, [esp + 0x10]
push eax
jmp 0x50b50a
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x50b3e9
lea ecx, [esp + 0x14]
push ecx
call fcn.004dca10
cmp dword [esp + 0x10], esi
je 0x50b4a0
lea edx, [esp + 0x10]
push edx
call fcn.004d8d20
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
sub eax, dword [esi + 0x10]
push 0
sbb edx, dword [esi + 0x14]
push 0x2710
push edx
push eax
call fcn.005e5510
add edi, eax
adc ebx, edx
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0x14]
push ecx
call fcn.004dca10
cmp dword [esp + 0x10], 0
je 0x50b512
lea edx, [esp + 0x10]
push edx
call fcn.004d8d20
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret