Function at 0x610567d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov ecx, dword [0x610f08a0]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
test ecx, ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
jne 0x61056ef0
cmp byte [0x61145ff0], 0
je 0x61056ed3
call fcn.610943f0
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x74]
mov dword [esp + 0xc], 0
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.610e5c60
mov ebx, edx
or ebx, eax
jne 0x61056860
movzx eax, byte [ebp + 0x14]
xor al, 1
and al, 1
test al, al
je 0x6105683e
test byte [ebp + 0x14], 2
je 0x61056860
mov eax, dword [ebp + 0x14]
and eax, 1
test al, al
je 0x6105684e
test byte [ebp + 0x14], 2
jne 0x61056860
test byte [ebp + 0x14], 0x10
jne 0x61056eb6
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x610568a7
nop
call sym.cygwin1.dll___errno
mov dword [eax], 0x16
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x61056881
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x61056710
mov dword [esp + 8], 0x610566d0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61056874
mov eax, 1
mov ecx, 0x61056724
mov edx, 3
call fcn.6109ad60
mov eax, dword [0x61145c80]
test eax, eax
je 0x61056e90
xor eax, eax
mov esi, dword [0x61146000]
mov ecx, dword [ebp - 0x78]
test byte [ebp + 0x14], 0x20
mov ebx, dword [ebp - 0x74]
sete al
dec esi
xor edx, edx
and ebx, edx
mov dword [ebp - 0x7c], ebx
dec eax
xor ebx, ebx
or dword [ebp + 0x18], eax
mov eax, esi
not eax
and ecx, eax
mov eax, dword [0x61146000]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
mov dword [esp + 8], eax
adc ebx, dword [ebp - 0x74]
xor edx, edx
add ecx, esi
mov dword [esp], ecx
adc ebx, edx
xor edx, edx
mov dword [ebp - 0x8c], edx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
call fcn.610e5b00
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xac], edx
mul dword [ebp - 0xb0]
mov ecx, eax
mov eax, dword [ebp - 0x80]
sub ecx, eax
cmp dword [ebp + 0x18], 0xffffffff
mov dword [ebp - 0x84], ecx
je 0x61056d80
mov dword [esp + 0xc], 1
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.610e7290
mov edi, dword [ebp - 0x24]
test edi, edi
js 0x61056e58
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x94], eax
mov eax, dword [eax + 0x26c]
cmp eax, 0xf7
je 0x61056db0
cmp eax, 0x10004
setne al
movzx eax, al
dec eax
or dword [ebp + 0x18], eax
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x6110d570
jne 0x61056d9b
cmp dword [ebp + 0x18], 0xffffffff
je 0x61056d80
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x61145c80]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.61056530
mov dword [ebp - 0x98], eax
test eax, eax
je 0x610569f3
inc ebx
je 0x61056ce0
test byte [ebp + 0x10], 2
sete al
test byte [ebp + 0x14], 2
movzx esi, al
lea esi, [esi + esi + 2]
je 0x61056a25
mov eax, dword [0x61148914]
movzx eax, byte [eax + 0xe]
shr al, 3
and eax, 1
test al, al
jne 0x61056a20
cmp dword [ebp + 0x18], 0xffffffff
je 0x61056a25
mov esi, 1
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 0x70], ebx
je 0x61056a3c
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
sub eax, ecx
sub ebx, eax
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x84]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x94]
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [edx + 0x68]
mov dword [ebp - 0x9c], eax
inc eax
je 0x61056c3d
cmp dword [ebp + 0x18], 0xffffffff
je 0x61056ca3
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x48], 0
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x70]
test ebx, ebx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], 0
js 0x61056b4c
mov eax, dword [0x610ed768]
mov edx, 0xffffffff
xor esi, esi
lea ebx, [eax + 0x18c]
mov eax, dword [eax + 0x18c]
call fcn.610907e0
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 0x1c]
jge 0x61056b02
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 0x18]
mov edi, dword [eax + edx*4]
test edi, edi
jne 0x61056b07
mov esi, 1
mov eax, dword [ebx]
call fcn.61090890
test esi, esi
jne 0x61056b4c
mov eax, dword [0x610ed768]
mov ecx, dword [ebp + 0x18]
add eax, 0x18c
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
lea edx, [eax + 0x268]
mov eax, dword [eax + 0x268]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x61056c7c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x84]
jbe 0x61056b6b
mov eax, dword [ebp - 0x84]
mov dword [esp + 0x44], eax
mov ecx, dword [ebp - 0x78]
cld
mov ebx, dword [ebp - 0x74]
lea edi, [esp + 4]
lea esi, [ebp - 0x68]
mov dword [esp + 0x3c], ecx
mov ecx, 0xe
mov dword [esp + 0x40], ebx
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x98]
mov dword [esp], ebx
call fcn.61056170
test eax, eax
je 0x61056bf9
mov ebx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax + 0x1c]
sub ebx, ecx
add ebx, edx
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x61056bcf
mov eax, 1
mov ecx, 0x61056724
mov edx, 3
call fcn.6109ad80
mov eax, ebx
jmp 0x61056879
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x61056729
mov dword [esp + 8], 0x610566d0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61056bb4
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x9c]
mov eax, dword [edx]
mov edx, dword [ebp - 0x70]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x94]
mov dword [esp], edx
call dword [eax + 0x6c]
call sym.cygwin1.dll___errno
mov dword [eax], 0xc
mov ebx, dword [0x610f08a0]
test ebx, ebx
jne 0x61056c56
mov ecx, 0x61056724
mov edx, 3
mov eax, 1
call fcn.6109ad80
jmp 0x61056874
mov dword [esp + 0xc], 0x6105673f
mov dword [esp + 8], 0x610566d0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61056c3d
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x61145c80]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.610565c0
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x61056b5a
jmp 0x61056bf9
call fcn.610943f0
mov edx, dword [ebp - 0x84]
lea ebx, [eax + edx - 1]
call fcn.610943f0
mov edx, eax
mov ecx, edx
mov eax, ebx
xor edx, edx
div ecx
mov dword [ebp - 0x84], eax
call fcn.610943f0
mov edx, dword [ebp - 0x84]
imul eax, edx
mov dword [ebp - 0x84], eax
jmp 0x61056a91
mov eax, dword [ebp - 0x74]
or eax, dword [ebp - 0x78]
jne 0x610569f3
test byte [ebp + 0x14], 0x10
jne 0x610569f3
mov ebx, dword [ebp - 0x74]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x78]
mov dword [esp + 8], ebx
mov ebx, dword [ebp - 0x98]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.61056240
test eax, eax
mov ebx, eax
je 0x610569f3
mov dword [esp], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.61055ba0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x74]
and eax, edx
inc eax
jne 0x61056d6c
mov edi, dword [0x610f08a0]
test edi, edi
je 0x61056c3d
mov dword [esp + 0xc], 0x61056753
jmp 0x61056c5e
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x78]
add ecx, esi
mov ebx, ecx
jmp 0x61056bab
mov ebx, 0xffffffff
mov ecx, 0x611458e0
mov dword [0x611458ec], ebx
mov dword [ebp - 0x94], ecx
jmp 0x610569ce
mov eax, dword [0x610ed768]
mov eax, dword [eax + 0x18c]
call fcn.61090890
jmp 0x610569c4
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0xc0]
lea edx, [ebp - 0x6c]
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
mov ecx, dword [ebp - 0x6c]
sub esp, 8
xor edx, edx
mov ebx, ecx
xor ecx, ecx
add ecx, eax
adc ebx, edx
cmp dword [ebp - 0x7c], ebx
jl 0x61056e2d
jg 0x61056de8
cmp dword [ebp - 0x80], ecx
jb 0x61056e2d
call sym.cygwin1.dll___errno
mov dword [eax], 6
mov ecx, 0x61056724
mov edx, 3
mov eax, 1
call fcn.6109ad80
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x6110d570
je 0x61056874
mov eax, dword [0x610ed768]
mov eax, dword [eax + 0x18c]
call fcn.61090890
jmp 0x61056874
sub ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
sbb ebx, dword [ebp - 0x7c]
xor edx, edx
cmp edx, ebx
jl 0x610569b3
jg 0x61056e4d
cmp eax, ecx
jbe 0x610569b3
mov dword [ebp - 0x84], ecx
jmp 0x610569b3
mov esi, dword [0x610f08a0]
test esi, esi
je 0x61056df3
mov dword [esp + 0xc], 0x6105675f
mov dword [esp + 8], 0x610566d0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61056df3
mov ecx, 0xc
mov edx, 1
mov eax, 0xc8
call fcn.61002bd0
mov dword [0x61145c80], eax
test eax, eax
jne 0x610568c8
jmp 0x61056c28
call fcn.610943f0
mov edx, eax
mov eax, dword [ebp + 8]
mov ebx, edx
xor edx, edx
div ebx
test edx, edx
jne 0x61056860
jmp 0x61056858
call fcn.61094420
mov dword [0x61146000], eax
mov byte [0x61145ff0], 1
jmp 0x61056803
mov dword [esp + 0x28], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x61056790
mov dword [esp + 8], 0x610566d0
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x610567f6