Function at 0x402ed0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, 0x5ba82c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
call fcn.005a883c
mov dword [ebp - 0x1c], 2
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.005b7030
inc dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 0xc
test esi, 0x800
jne 0x402f26
test esi, 0x200
jne 0x402f26
test esi, 0x1000
je 0x40309d
lea edx, [ebp + 0x18]
xor ecx, ecx
push edx
lea edx, [ebp + 0xc]
mov word [ebp - 0x28], 0x18
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
mov eax, 0x5cd218
call fcn.00403110
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
lea eax, [ebp - 8]
call fcn.004fccb8
lea ebx, [ebp - 8]
inc dword [ebp - 0x1c]
cmp dword [ebx], 0
je 0x402f6a
mov eax, dword [ebx]
jmp 0x402f6f
mov eax, 0x5ba3c6
push eax
call sub.KERNEL32.DLL_GetCompressedFileSizeW
mov ebx, eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005b7fac
sub dword [ebp - 0x1c], 2
lea eax, [ebp - 4]
mov edx, 2
call fcn.00401c2c
cmp ebx, 0xffffffff
jne 0x402fe3
lea ecx, [ebp + 0x18]
xor eax, eax
push ecx
lea edx, [ebp + 0xc]
mov word [ebp - 0x28], 0x24
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
call fcn.004fccb8
lea ebx, [ebp - 0xc]
inc dword [ebp - 0x1c]
cmp dword [ebx], 0
je 0x402fc6
mov eax, dword [ebx]
jmp 0x402fcb
mov eax, 0x5ba3c8
push eax
call sub.KERNEL32.DLL_GetCompressedFileSizeW
mov ebx, eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005b7fac
cmp ebx, 0xffffffff
jne 0x40307c
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov word [ebp - 0x28], 0xc
test ebx, ebx
je 0x403075
cmp byte [ebp + 0x20], 0
jne 0x403075
push ebx
mov word [ebp - 0x28], 0x30
mov edx, str.Unable_to_get_compressed_file_size_for
lea eax, [ebp - 0x10]
mov ecx, 0xfde9
call fcn.005b6fd0
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
inc dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x14], edx
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x1c]
lea edx, [ebp + 0xc]
call fcn.00403110
lea eax, [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [sym.SpaceSniffer.exe__frmConsole]
push ecx
push 2
mov edx, dword [eax]
push edx
call fcn.0040ee68
add esp, 0x10
lea eax, [ebp - 0x14]
sub dword [ebp - 0x1c], 2
mov edx, 2
call fcn.00401c2c
sub dword [ebp - 0x1c], 2
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00401c2c
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x18]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, ebx
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x4030d9
cmp edi, 0xffffffff
je 0x4030ba
lea ecx, [ebp - 0x48]
push ecx
push edi
call sub.KERNEL32.DLL_GetFileSizeEx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
jmp 0x4030d9
mov eax, dword [ebp + 0x18]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, ebx
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 0
push 1
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
call fcn.005b05fc
push edx
push eax
sub dword [ebp - 0x1c], 2
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00401c2c
pop eax
pop edx
mov ecx, dword [ebp - 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret