Function at 0x4b5170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
push esi
call fcn.0048f200
xor esi, esi
cmp dword [0x5981dc], esi
mov dword [esp + 0x78], eax
je 0x4b5720
cmp dword [0x5981d8], esi
je 0x4b5720
push 0x24
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call fcn.004a7950
mov eax, dword [0x597eec]
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x4b51cc
mov dword [esp + 0x1c], 0x10000
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push edi
push ecx
call fcn.004a3fd0
lea edx, [esp + 0x8c]
push edx
mov edi, 0x58df48
lea ebx, [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.004b50e0
lea eax, [esp + 0x8c]
push eax
mov edi, 0x58df58
call fcn.004b50e0
mov edx, dword [0x58df4c]
mov ecx, dword [0x58df48]
mov eax, dword [0x58df50]
mov ebp, dword [esp + 0xec]
push 0x2000000
xor edi, edi
push edi
push 7
mov dword [esp + 0x28], edx
push 1
lea edx, [esp + 0x20]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x58df54]
push edx
push ebp
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call dword [0x5981d8]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
je 0x4b5351
lea ecx, [esp + 0xb4]
push ecx
push eax
call esi
test eax, eax
je 0x4b5384
mov edx, dword [0x58df48]
mov ecx, dword [0x58df50]
mov eax, dword [0x58df4c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x34], edx
mov edx, dword [0x58df54]
mov dword [esp + 0x38], eax
xor ebx, ebx
or ecx, ebx
xor eax, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0xc8]
or eax, edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x5c], eax
or ecx, ebx
xor eax, eax
or eax, edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x64], eax
or ecx, ebx
xor eax, eax
or eax, edx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xb4]
push ecx
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], bl
mov dword [esp + 0x84], edi
call dword [esp + 0x104]
jmp 0x4b5384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x58df48]
mov edx, dword [0x58df54]
push eax
mov eax, dword [0x58df4c]
push eax
mov eax, dword [0x58df50]
push ecx
push edx
push eax
push str.failed_to_open_dir__016I64x_016I64x__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x1c
mov edx, dword [0x58df5c]
mov ecx, dword [0x58df58]
mov eax, dword [0x58df60]
push 0x2000000
push edi
push 7
mov dword [esp + 0x28], edx
push 1
lea edx, [esp + 0x20]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x58df64]
push edx
push ebp
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call dword [0x5981d8]
cmp eax, 0xffffffff
je 0x4b54b2
lea ecx, [esp + 0xb4]
push ecx
push eax
call esi
test eax, eax
je 0x4b54e5
mov edx, dword [0x58df58]
mov ecx, dword [0x58df60]
mov eax, dword [0x58df5c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x34], edx
mov edx, dword [0x58df64]
mov dword [esp + 0x38], eax
xor eax, eax
xor esi, esi
or ecx, esi
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0xc8]
or eax, edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x5c], eax
or ecx, esi
xor eax, eax
or eax, edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x64], eax
or ecx, esi
xor eax, eax
or eax, edx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xb4]
push ecx
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], 0
mov dword [esp + 0x84], edi
call dword [esp + 0x104]
jmp 0x4b54e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x58df58]
mov edx, dword [0x58df64]
push eax
mov eax, dword [0x58df5c]
push eax
mov eax, dword [0x58df60]
push ecx
push edx
push eax
push str.failed_to_open_dir__016I64x_016I64x__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x1c
mov eax, dword [esp + 0x8c]
cmp eax, edi
mov ebp, eax
je 0x4b5706
jmp 0x4b5500
mov eax, dword [eax]
cmp eax, edi
mov dword [esp + 0x8c], eax
jne 0x4b5514
mov dword [esp + 0x90], edi
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 2
mov ecx, dword [ebp + 0x14]
lea ebx, [ebp + 0x14]
push edi
mov dword [esp + 0x1c], ecx
mov edx, dword [ebx + 4]
push edi
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
push 7
push 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xfc]
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x3c], ecx
call dword [0x5981d8]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x4b56bc
lea esp, [esp]
cmp dword [0x5980a4], edi
je 0x4b5599
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push str.readdir__016I64x_016I64x_n
push 0xff00ff00
call fcn.0048f0c0
add esp, 0x18
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push edx
push esi
push 0x13
push eax
call dword [0x5981dc]
test eax, eax
je 0x4b56af
mov eax, dword [esi + 0x3c]
shr eax, 1
cmp eax, 1
mov dword [esp + 0x88], eax
jne 0x4b55d0
cmp word [esi + 0x58], 0x2e
jmp 0x4b55e1
cmp eax, 2
jne 0x4b55e7
cmp word [esi + 0x58], 0x2e
jne 0x4b55e7
cmp word [esi + 0x5a], 0x2e
je 0x4b569e
test byte [esi + 0x38], 0x10
je 0x4b5606
lea ecx, [esp + 0x8c]
lea edi, [esi + 0x48]
push ecx
call fcn.004b50e0
mov eax, dword [esp + 0x88]
xor edi, edi
mov edx, dword [esi + 0x48]
mov dword [esp + 0x34], edx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x38], ecx
mov edx, dword [esi + 0x50]
mov dword [esp + 0x3c], edx
mov ecx, dword [esi + 0x54]
mov edx, dword [ebx]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x54], edx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x58], ecx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x5c], edx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x64], edx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x68], ecx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x6c], edx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x70], ecx
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0xf8]
mov byte [esp + 0x78], al
push ecx
lea eax, [esi + 0x58]
push edx
mov dword [esp + 0x84], eax
call dword [esp + 0x104]
mov eax, dword [esi]
cmp eax, edi
je 0x4b5570
add esi, eax
jmp 0x4b55b8
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b56e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push str.failed_to_open_dir__016I64x_016I64x__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x1c
mov edx, dword [esp + 0xb0]
mov dword [ebp], edx
mov eax, dword [esp + 0x8c]
cmp eax, edi
mov dword [esp + 0xb0], ebp
mov ebp, eax
jne 0x4b5500
mov eax, dword [esp + 0x2c]
push eax
call fcn.004a4030
lea ecx, [esp + 0x94]
push ecx
call fcn.004a7990
pop edi
pop ebp
pop ebx
call fcn.0048f200
sub eax, dword [esp + 0x78]
push eax
push str._f_seconds_n
call fcn.0048f0a0
add esp, 8
pop esi
add esp, 0xd8
ret 0x14