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

Disassembly:
sub esp, 0xd8
push esi
call fcn.0048f1e0
xor esi, esi
cmp dword [0x59826c], esi
mov dword [esp + 0x78], eax
je 0x4b5ff0
cmp dword [0x598268], esi
je 0x4b5ff0
push 0x24
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call fcn.004a7e30
mov eax, dword [0x597f70]
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x4b5a9c
mov dword [esp + 0x1c], 0x10000
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push edi
push ecx
call fcn.004a48f0
lea edx, [esp + 0x8c]
push edx
mov edi, 0x58dfb8
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.004b59b0
lea eax, [esp + 0x8c]
push eax
mov edi, 0x58dfc8
call fcn.004b59b0
mov edx, dword [0x58dfbc]
mov ecx, dword [0x58dfb8]
mov eax, dword [0x58dfc0]
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 [0x58dfc4]
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 [0x598268]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
je 0x4b5c21
lea ecx, [esp + 0xb4]
push ecx
push eax
call esi
test eax, eax
je 0x4b5c54
mov edx, dword [0x58dfb8]
mov ecx, dword [0x58dfc0]
mov eax, dword [0x58dfbc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x34], edx
mov edx, dword [0x58dfc4]
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 0x4b5c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x58dfb8]
mov edx, dword [0x58dfc4]
push eax
mov eax, dword [0x58dfbc]
push eax
mov eax, dword [0x58dfc0]
push ecx
push edx
push eax
push str.failed_to_open_dir__016I64x_016I64x__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x1c
mov edx, dword [0x58dfcc]
mov ecx, dword [0x58dfc8]
mov eax, dword [0x58dfd0]
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 [0x58dfd4]
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 [0x598268]
cmp eax, 0xffffffff
je 0x4b5d82
lea ecx, [esp + 0xb4]
push ecx
push eax
call esi
test eax, eax
je 0x4b5db5
mov edx, dword [0x58dfc8]
mov ecx, dword [0x58dfd0]
mov eax, dword [0x58dfcc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x34], edx
mov edx, dword [0x58dfd4]
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 0x4b5db5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x58dfc8]
mov edx, dword [0x58dfd4]
push eax
mov eax, dword [0x58dfcc]
push eax
mov eax, dword [0x58dfd0]
push ecx
push edx
push eax
push str.failed_to_open_dir__016I64x_016I64x__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x1c
mov eax, dword [esp + 0x8c]
cmp eax, edi
mov ebp, eax
je 0x4b5fd6
jmp 0x4b5dd0
mov eax, dword [eax]
cmp eax, edi
mov dword [esp + 0x8c], eax
jne 0x4b5de4
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 [0x598268]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x4b5f8c
lea esp, [esp]
cmp dword [0x598128], edi
je 0x4b5e69
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.0048f0a0
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 [0x59826c]
test eax, eax
je 0x4b5f7f
mov eax, dword [esi + 0x3c]
shr eax, 1
cmp eax, 1
mov dword [esp + 0x88], eax
jne 0x4b5ea0
cmp word [esi + 0x58], 0x2e
jmp 0x4b5eb1
cmp eax, 2
jne 0x4b5eb7
cmp word [esi + 0x58], 0x2e
jne 0x4b5eb7
cmp word [esi + 0x5a], 0x2e
je 0x4b5f6e
test byte [esi + 0x38], 0x10
je 0x4b5ed6
lea ecx, [esp + 0x8c]
lea edi, [esi + 0x48]
push ecx
call fcn.004b59b0
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 0x4b5e40
add esi, eax
jmp 0x4b5e88
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b5fb4
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.0048f0a0
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 0x4b5dd0
mov eax, dword [esp + 0x2c]
push eax
call fcn.004a4950
lea ecx, [esp + 0x94]
push ecx
call fcn.004a7e70
pop edi
pop ebp
pop ebx
call fcn.0048f1e0
sub eax, dword [esp + 0x78]
push eax
push str._f_seconds_n
call fcn.0048f080
add esp, 8
pop esi
add esp, 0xd8
ret 0x14