Function at 0x10005cb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073f54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov dword [ebp - 0x10], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
mov eax, dword [ebp + 8]
push eax
call fcn.1000d5d0
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.1000ad20
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0
push str.SCAN
lea ecx, [ebp - 0x90]
call fcn.1000d430
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.1000bce0
add esp, 0xc
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.10012480
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.10012480
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 8
jb 0x10005d84
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
jmp 0x10005d8a
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x48], edx
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp - 0x48]
push eax
call dword [0x100ad888]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x10005e8a
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x80000
ja 0x10005ddb
cmp dword [ebp - 0x28], 0
je 0x10005e1e
movzx eax, word [str.:_OK]
test eax, eax
jne 0x10005def
mov dword [ebp - 0x2c], 0
jmp 0x10005dff
push str.:_OK
call fcn.10048ec4
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
push str.:_OK
mov ecx, dword [ebp + 8]
call fcn.10013150
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10006c40
jmp 0x10005e7e
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0x10
jb 0x10005e43
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
jmp 0x10005e49
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10006170
movzx eax, al
test eax, eax
je 0x10005e7e
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x415c], 1
mov ecx, dword [ebp - 0x10]
call fcn.100061d0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x415c], 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10005ecb
movzx ecx, word [str.:_OK]
test ecx, ecx
jne 0x10005e9e
mov dword [ebp - 0x30], 0
jmp 0x10005eae
push str.:_OK
call fcn.10048ec4
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
push str.:_OK
mov ecx, dword [ebp + 8]
call fcn.10013150
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10006c40
mov dword [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10012480
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4