Function at 0x423740
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x48], eax
push edi
mov ebx, dword [esi + 0x8d0]
test ebx, ebx
je 0x4237a3
cmp dword [eax + 0xc], 0
jl 0x4237a3
jg 0x423776
cmp dword [eax + 8], 0x80000
jb 0x4237a3
mov edi, dword [esi + 0x694]
xor eax, eax
mov edx, dword [esi + 0x690]
mov ecx, edi
and ecx, 0x40
or eax, ecx
jne 0x423799
test dword [esi + 0x8c8], 0x2000
jne 0x4237a3
mov ecx, 1
mov dword [ebp - 0x58], edi
jmp 0x4237b4
mov eax, dword [esi + 0x694]
xor ecx, ecx
mov edx, dword [esi + 0x690]
mov dword [ebp - 0x58], eax
and edx, 2
mov dword [ebp - 0x68], ecx
or edx, 0
mov eax, 0x8000000
jne 0x4237c9
mov eax, 0x28000000
mov edi, dword [esi + 0x888]
xorps xmm0, xmm0
neg edi
mov dword [ebp - 0x4c], 0xffffffff
movlpd qword [ebp - 0x44], xmm0
sbb edi, edi
xor edx, edx
and edi, 0x2000000
test ecx, ecx
cmove ebx, edx
or edi, ebx
lea ebx, [esi + 0xd84]
or edi, eax
mov eax, dword [ebx + 4]
cmp eax, ebx
je 0x423845
test eax, eax
je 0x423845
mov eax, dword [ebp - 0x48]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x2c], xmm0
movups xmm0, xmmword [eax + 0x20]
lea eax, [ebp - 0x3c]
push eax
push 0x4b1580
movups xmmword [ebp - 0x1c], xmm0
call fcn.00459e20
add esp, 8
int3
mov ecx, esi
call fcn.00419990
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x20], 1
je 0x423cd5
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, ecx
or eax, edx
je 0x4238b9
push 5
push ecx
push edi
mov edi, dword [ebp - 0x48]
sub esp, 8
mov ecx, esi
push 3
push 0x80000000
lea eax, [edi + 0x28]
push eax
call fcn.00426c70
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x4238a6
mov eax, dword [edi + 0x1c]
mov ecx, esi
add eax, 0x14
push 0
lea eax, [edi + eax*2]
push eax
push str.OpenFile_src_digest_
call fcn.00419420
jmp 0x423cd5
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
jmp 0x4238bc
mov edi, dword [ebp - 0x48]
cmp dword [ebp - 0x44], ecx
jne 0x423c66
cmp dword [ebp - 0x40], edx
jne 0x423c66
or ecx, edx
jne 0x4238f9
push ecx
push edi
mov ecx, esi
call fcn.00423d10
test eax, eax
je 0x423c3f
push 2
push eax
mov ecx, esi
mov dword [eax + 0x24], 0
call fcn.00423ea0
jmp 0x423c3f
cmp dword [ebp - 0x40], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x5c], xmm0
jl 0x423c3f
jg 0x42391c
cmp dword [ebp - 0x44], 0
jbe 0x423c3f
cmp dword [esi + 0xff4], 0
mov edx, 0xa
jne 0x423c2d
mov ecx, dword [esi + 0xfec]
test ecx, ecx
je 0x42395a
mov eax, dword [esi + 0x690]
and eax, 0x100
or eax, 0
je 0x42395a
cmp edx, ecx
sbb edx, edx
and edx, 0xfff40000
add edx, 0x100000
jmp 0x423960
mov edx, dword [esi + 0x8c0]
cmp dword [ebp - 0x68], 0
je 0x42399f
mov eax, dword [esi + 0x6bc]
mov ecx, 0x14
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x6b8]
imul eax, ecx
cmp dword [ebp - 0x40], 0
jg 0x42399f
jl 0x42398c
cmp dword [ebp - 0x44], eax
jae 0x42399f
push dword [ebp - 0x40]
lea ecx, [esi + 0x680]
push dword [ebp - 0x44]
call fcn.00412830
mov edx, eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
sbb ecx, dword [ebp - 0x50]
js 0x4239b3
jg 0x4239b5
cmp eax, edx
ja 0x4239b5
mov edx, eax
mov ecx, dword [esi + 0x8a4]
mov edi, dword [esi + 0xd7c]
lea ebx, [ecx - 1]
add ebx, edx
xor edx, edx
mov eax, ebx
div ecx
sub ebx, edx
lea edx, [esi + 0xd78]
cmp edi, edx
jne 0x4239dc
xor edi, edi
jmp 0x423a07
test edi, edi
je 0x423a07
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4239eb
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x4239f7
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov dword [edi + 4], 0
mov dword [edi], 0
dec dword [edx + 8]
mov eax, dword [esi + 0xd84]
lea ecx, [esi + 0xd84]
mov dword [edi + 4], ecx
mov dword [edi], eax
mov eax, dword [ecx]
push ebx
push dword [ebp - 0x48]
mov dword [eax + 4], edi
inc dword [ecx + 8]
mov eax, dword [ebp - 0x58]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x54]
mov dword [edi + 0x24], ecx
mov ecx, esi
adc eax, dword [ebp - 0x50]
mov dword [edi + 0x28], eax
call fcn.00423d10
mov dword [edi + 0x18], eax
test eax, eax
je 0x423c2d
cmp dword [esi + 0xff4], 0
jne 0x423c2d
push edi
push ebx
push dword [eax + 0x68]
mov ecx, esi
push dword [ebp - 0x4c]
call fcn.004218d0
test eax, eax
je 0x423c12
mov ecx, dword [ebp - 0x5c]
add ecx, dword [edi + 8]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
adc eax, 0
mov dword [ebp - 0x5c], ecx
add ecx, edx
mov dword [ebp - 0x58], eax
adc eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x40]
jg 0x423a9e
jl 0x423a94
cmp ecx, dword [ebp - 0x44]
jae 0x423a9e
cmp byte [edi + 0x10], 0
je 0x423a9e
xor eax, eax
jmp 0x423aa3
mov eax, 1
lea ebx, [esi + 0xd78]
mov dword [ebp - 0x60], eax
cmp dword [ebx + 4], ebx
je 0x423ab9
test eax, eax
je 0x423bd3
mov eax, 1
nop
mov edi, dword [esi + 0xd88]
lea ecx, [esi + 0xd84]
cmp edi, ecx
je 0x423bc7
test edi, edi
je 0x423bc7
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x4c]
call fcn.00417ae0
mov dword [ebp - 0x64], eax
cmp eax, 2
je 0x423bc7
mov ecx, dword [esi + 0xd88]
lea edx, [esi + 0xd84]
cmp ecx, edx
je 0x423b3d
test ecx, ecx
je 0x423b3d
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x423b1b
mov eax, dword [ecx]
mov dword [ebx], eax
mov ebx, dword [ecx]
test ebx, ebx
je 0x423b27
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov dword [ecx + 4], 0
lea ebx, [esi + 0xd78]
mov dword [ecx], 0
dec dword [edx + 8]
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov eax, dword [ebx]
mov dword [eax + 4], edi
inc dword [ebx + 8]
cmp dword [ebp - 0x64], 0
mov dword [ebx], edi
je 0x423beb
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x24], eax
mov ecx, dword [esi + 0xb50]
mov eax, dword [edi + 0xc]
add dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x50]
adc dword [ecx + 0x54], 0
cmp eax, dword [ebp - 0x40]
jl 0x423b90
jg 0x423b89
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x44]
jb 0x423b90
mov eax, 2
jmp 0x423b95
mov eax, 1
push eax
push dword [edi + 0x18]
mov ecx, esi
call fcn.00423ea0
mov ecx, esi
call fcn.00419990
cmp dword [ebp - 0x60], 0
jne 0x423bb6
cmp dword [esi + 0xfec], 0
je 0x423bc7
cmp dword [esi + 0xff4], 0
jne 0x423c2d
mov eax, dword [ebp - 0x64]
jmp 0x423ac0
cmp dword [esi + 0xff4], 0
jne 0x423c2d
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x40]
jg 0x423c3f
jl 0x42391c
cmp edx, dword [ebp - 0x44]
jae 0x423c3f
jmp 0x42391c
mov eax, dword [edi + 0x18]
test eax, eax
je 0x423bfc
push 5
push eax
mov ecx, esi
call fcn.00423ea0
mov ebx, dword [ebp - 0x48]
push 0
mov eax, dword [ebx + 0x1c]
add eax, 0x14
lea eax, [ebx + eax*2]
push eax
push str.ReadFile_src_digest2_
jmp 0x423c26
mov ecx, dword [ebp - 0x48]
push 0
mov eax, dword [ecx + 0x1c]
add ecx, 0x28
lea eax, [ecx + eax*2]
push eax
push str.ReadFile_src_digest_
mov ecx, esi
call fcn.00419420
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x40]
jg 0x423c3f
jl 0x423c80
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x44]
jb 0x423c80
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x423c4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x1c]
mov ecx, esi
add eax, 0x14
push 2
lea eax, [edi + eax*2]
push eax
push str.Size_is_changed_src_digest_
call fcn.00419420
jmp 0x423c86
lea ebx, [esi + 0xd84]
cmp dword [ebp - 0x4c], 0xffffffff
je 0x423cd5
mov edi, dword [ebx + 4]
cmp edi, ebx
je 0x423cbc
test edi, edi
je 0x423cbc
cmp edi, ebx
je 0x423cbc
test edi, edi
je 0x423cbc
nop
mov eax, dword [edi + 0x18]
test eax, eax
je 0x423cb1
push 5
push eax
mov ecx, esi
call fcn.00423ea0
mov edi, dword [edi + 4]
cmp edi, ebx
je 0x423cbc
test edi, edi
jne 0x423ca0
mov ebx, dword [ebp - 0x4c]
lea eax, [esi + 0xd74]
push eax
push ebx
mov ecx, esi
call fcn.00418340
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x48]
xor eax, eax
cmp dword [ecx + 0x20], 1
setne al
add eax, 3
push eax
push ecx
push 0
push ecx
mov ecx, esi
call fcn.00423d10
add esp, 4
mov ecx, esi
push eax
call fcn.00423ea0
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 4