Function at 0x1001cb2e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067493
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push esi
movzx eax, byte [ebp + 0x34]
test eax, eax
je 0x1001cbef
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xe0], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x1001cbe0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1001cbbe
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 4
jge 0x1001cbde
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0xb8]
call fcn.10028ca3
mov dword [eax], 0xe48d327c
jmp 0x1001cbb3
jmp 0x1001cbea
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x1001d02d
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], 0x196f
cmp dword [ebp - 0x80], 0x631
jge 0x1001cd1f
lea eax, [ebp - 0xf8]
push eax
push 0x10008c10
call fcn.1004eb10
pop ecx
pop ecx
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0xf0]
call fcn.10028b4f
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
jl 0x1001cca8
jg 0x1001cc62
cmp dword [ebp - 0x2c], 0
jbe 0x1001cca8
mov eax, dword [ebp - 0x38]
shl eax, 1
mov dword [ebp - 0x38], eax
push 0
push 0xa
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.10066b20
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xf0]
call fcn.10028be8
push 0
push 0xa
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.10066a70
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
jmp 0x1001cc54
lea ecx, [ebp - 0xf0]
call fcn.10028c9a
dec eax
mov dword [ebp - 0x1c], eax
jmp 0x1001ccc0
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x1001ccf4
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.10028ca3
cmp dword [eax], 7
jne 0x1001cce2
mov dword [ebp - 0x54], 1
jmp 0x1001cce6
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x3c], eax
jmp 0x1001ccb9
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
push 0x10008afc
call fcn.1004f14f
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.10028c61
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x94], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xc0]
movzx eax, byte [eax]
test eax, eax
je 0x1001cf91
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xdc], 0x1803
cmp dword [ebp - 0xdc], 0x5f6
jge 0x1001cec3
lea eax, [ebp - 0xb0]
push eax
push 0x10008ae4
call fcn.1004eb10
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
call fcn.10028f55
mov dword [ebp - 4], 1
and dword [ebp - 0x10], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x40], 0
jmp 0x1001cdff
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0xb0]
jge 0x1001cea8
lea eax, [ebp - 0x10]
push eax
push 0x10008ae4
call fcn.1004eb10
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
jne 0x1001ce26
jmp 0x1001cdf8
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x48]
call fcn.10028c7d
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x48]
call fcn.10028fe4
mov ecx, eax
call fcn.1002901e
movzx eax, al
test eax, eax
je 0x1001ce6b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
call fcn.10028f6a
mov dword [eax], 1
jmp 0x1001cea3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
call fcn.10028f6a
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
call fcn.10028f6a
cmp dword [eax], 2
jle 0x1001cea3
or dword [ebp - 0x24], 0xffffffff
jmp 0x1001cea8
jmp 0x1001cdf8
push dword [ebp - 0x24]
push 0x10008b08
call fcn.1004f14f
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10028fbb
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10028ca3
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x1001cf25
mov eax, dword [ebp - 0x20]
cmp dword [eax], 1
jle 0x1001cef3
mov dword [ebp - 0x34], 1
jmp 0x1001cef7
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
or eax, 0xffffffff
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x74]
cmp eax, dword [ecx]
jg 0x1001cf15
mov dword [ebp - 0x68], 1
jmp 0x1001cf19
and dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 1
jge 0x1001cf25
and dword [ebp - 0x4c], 0
jmp 0x1001cf2c
mov dword [ebp - 0x4c], 1
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10028ca3
mov esi, eax
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10028ca3
mov ecx, dword [ebp - 0x4c]
add ecx, dword [eax]
mov esi, dword [esi]
sub esi, ecx
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10028ca3
cmp esi, dword [eax]
jl 0x1001cf62
mov dword [ebp - 0x64], 1
jmp 0x1001cf66
and dword [ebp - 0x64], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10028ca3
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax]
je 0x1001cf80
mov dword [ebp - 0x5c], 1
jmp 0x1001cf84
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
jmp 0x1001d02d
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0xc4]
jge 0x1001d00e
mov dword [ebp - 0x50], 1
jmp 0x1001d012
and dword [ebp - 0x50], 0
push 0
mov ecx, dword [ebp - 0x58]
call fcn.10028ca3
mov esi, dword [ebp - 0x50]
add esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x58]
call fcn.10028ca3
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret