Function at 0x42b560
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x8c], eax
push esi
push edi
mov esi, dword [ebx + 0x8e0]
test esi, esi
je 0x42b5cf
cmp dword [eax + 0xc], 0
jl 0x42b5cf
jg 0x42b59c
cmp dword [eax + 8], 0x80000
jb 0x42b5cf
mov edi, dword [ebx + 0x6a4]
xor eax, eax
mov edx, dword [ebx + 0x6a0]
mov ecx, edi
and ecx, 0x40
or eax, ecx
jne 0x42b5bf
test dword [ebx + 0x8dc], 0x2000
jne 0x42b5cf
mov eax, 1
mov dword [ebp - 0x80], edi
mov dword [ebp - 0xb0], eax
jmp 0x42b5ea
mov eax, dword [ebx + 0x6a4]
mov edx, dword [ebx + 0x6a0]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0xb0], 0
and edx, 2
mov ecx, 0x8000000
or edx, 0
jne 0x42b5fc
mov ecx, 0x28000000
xor edx, edx
mov dword [ebp - 0x90], 0xffffffff
test eax, eax
lea edi, [ebx + 0xd64]
mov eax, dword [ebx + 0x898]
xorps xmm0, xmm0
cmove esi, edx
movlpd qword [ebp - 0x84], xmm0
neg eax
sbb eax, eax
and eax, 0x2000000
or esi, eax
mov eax, dword [edi + 4]
or esi, ecx
cmp eax, edi
je 0x42b6b6
test eax, eax
je 0x42b6b6
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x42b674
mov esi, eax
lea edi, [ebp - 0x74]
lea eax, [ebp - 0x74]
mov ecx, 0x1a
push eax
rep movsd dword es:[edi], dword [esi]
push str.x_p
call fcn.0045f780
int3
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], edx
push eax
push str.n_p
call fcn.0045f780
int3
mov ecx, ebx
call fcn.0041ab10
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x1c], 1
je 0x42bc95
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, ecx
or eax, edx
je 0x42b739
push 5
push ecx
push esi
mov esi, dword [ebp - 0x8c]
sub esp, 8
mov ecx, ebx
push 3
push SysReAllocString
lea eax, [esi + 0x64]
push eax
call fcn.00428c60
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
jne 0x42b723
mov eax, dword [ebx + 0x85c]
mov ecx, ebx
add eax, 0x32
push 0
lea eax, [esi + eax*2]
push eax
push str.OpenFile_dst_digest_
call fcn.0041a620
jmp 0x42bc95
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL30.dll_GetFileSizeEx]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
jmp 0x42b73f
mov esi, dword [ebp - 0x8c]
cmp dword [ebp - 0x84], ecx
jne 0x42bbea
cmp dword [ebp - 0x80], edx
jne 0x42bbea
or ecx, edx
jne 0x42b77f
push ecx
push esi
mov ecx, ebx
call fcn.0042bd00
test eax, eax
je 0x42bbc0
push 2
push eax
mov ecx, ebx
mov dword [eax + 0x24], 0
call fcn.0042c010
jmp 0x42bbc0
cmp dword [ebp - 0x80], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
jl 0x42bbc0
jg 0x42b7ab
cmp dword [ebp - 0x84], 0
jbe 0x42bbc0
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x88], edx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x94], eax
cmp dword [ebx + 0x100c], 0
mov esi, 0xa
jne 0x42bbab
mov ecx, dword [ebx + 0x1004]
test ecx, ecx
je 0x42b816
mov eax, dword [ebx + 0x6a0]
and eax, 0x100
or eax, 0
je 0x42b816
cmp esi, ecx
sbb edx, edx
and edx, 0xfff40000
add edx, 0x100000
jmp 0x42b81c
mov edx, dword [ebx + 0x8d0]
cmp dword [ebp - 0xb0], 0
je 0x42b864
mov eax, dword [ebx + 0x6cc]
mov ecx, 0x14
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebx + 0x6c8]
imul eax, ecx
cmp dword [ebp - 0x80], 0
jg 0x42b864
jl 0x42b84e
cmp dword [ebp - 0x84], eax
jae 0x42b864
push dword [ebp - 0x80]
lea ecx, [ebx + 0x690]
push dword [ebp - 0x84]
call fcn.00412d60
mov edx, eax
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
sbb ecx, dword [ebp - 0x88]
js 0x42b87e
jg 0x42b880
cmp eax, edx
ja 0x42b880
mov edx, eax
mov ecx, dword [ebx + 0x8bc]
mov esi, dword [ebx + 0xd5c]
lea edi, [ecx - 1]
add edi, edx
xor edx, edx
mov eax, edi
div ecx
sub edi, edx
lea edx, [ebx + 0xd58]
cmp esi, edx
jne 0x42b8a7
xor esi, esi
jmp 0x42b8d2
test esi, esi
je 0x42b8d2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42b8b6
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x42b8c2
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov dword [esi + 4], 0
mov dword [esi], 0
dec dword [edx + 8]
mov eax, dword [ebx + 0xd64]
lea ecx, [ebx + 0xd64]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, dword [ecx]
push edi
push dword [ebp - 0x8c]
mov dword [eax + 4], esi
inc dword [ecx + 8]
mov eax, dword [ebp - 0x98]
mov dword [ecx], esi
mov ecx, dword [ebp - 0x94]
add ecx, dword [ebp - 0x78]
mov dword [esi + 0x24], ecx
mov ecx, ebx
adc eax, dword [ebp - 0x88]
mov dword [esi + 0x28], eax
call fcn.0042bd00
mov dword [esi + 0x18], eax
test eax, eax
je 0x42bba8
cmp dword [ebx + 0x100c], 0
jne 0x42bba8
push esi
push edi
push dword [eax + 0x68]
mov ecx, ebx
push dword [ebp - 0x90]
call fcn.00422c80
test eax, eax
je 0x42bb87
mov ecx, dword [ebp - 0x94]
add ecx, dword [esi + 8]
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x78]
adc eax, 0
mov dword [ebp - 0x94], ecx
add ecx, edx
mov dword [ebp - 0x98], eax
adc eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x80]
jg 0x42b993
jl 0x42b980
cmp ecx, dword [ebp - 0x84]
jae 0x42b993
cmp dword [ebx + 0xdc8], 0
jne 0x42b993
cmp byte [esi + 0x10], 0
je 0x42b993
xor eax, eax
jmp 0x42b998
mov eax, 1
lea edi, [ebx + 0xd58]
mov dword [ebp - 0xa0], eax
cmp dword [edi + 4], edi
je 0x42b9ad
test eax, eax
je 0x42b9f5
mov eax, 1
mov esi, dword [ebx + 0xd68]
lea ecx, [ebx + 0xd64]
cmp esi, ecx
je 0x42b9e5
test esi, esi
je 0x42b9e5
push eax
push esi
push dword [ebp - 0x90]
mov ecx, ebx
call fcn.004189f0
mov dword [ebp - 0xa8], eax
cmp eax, 1
je 0x42ba1b
cmp eax, 2
jne 0x42ba4b
cmp dword [ebx + 0x100c], 0
mov edx, dword [ebp - 0x78]
jne 0x42bbab
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x80]
jg 0x42bbc0
jl 0x42b7d8
cmp edx, dword [ebp - 0x84]
jae 0x42bbc0
jmp 0x42b7d8
mov eax, dword [ebp - 0x78]
add eax, dword [esi + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x94]
adc dword [ebp - 0x88], 0
sub eax, dword [esi + 8]
mov dword [ebp - 0x94], eax
sbb dword [ebp - 0x98], 0
mov dword [ebp - 0xa8], 1
mov ecx, dword [ebx + 0xd68]
lea edx, [ebx + 0xd64]
cmp ecx, edx
je 0x42ba8c
test ecx, ecx
je 0x42ba8c
mov edi, dword [ecx + 4]
test edi, edi
je 0x42ba6a
mov eax, dword [ecx]
mov dword [edi], eax
mov edi, dword [ecx]
test edi, edi
je 0x42ba76
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov dword [ecx + 4], 0
lea edi, [ebx + 0xd58]
mov dword [ecx], 0
dec dword [edx + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov dword [esi + 4], edi
mov eax, dword [edi]
mov dword [eax + 4], esi
inc dword [edi + 8]
cmp dword [ebp - 0xa8], 0
mov dword [edi], esi
je 0x42bb5a
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebx + 0xb60]
mov eax, dword [esi + 0xc]
add dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x88]
adc dword [ecx + 0x54], 0
cmp eax, dword [ebp - 0x80]
jl 0x42baee
jg 0x42bae7
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x84]
jb 0x42baee
mov edi, 2
jmp 0x42baf3
mov edi, 1
mov esi, dword [esi + 0x18]
lea eax, [ebx + 0x1270]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
test esi, esi
je 0x42bb0a
mov dword [esi + 0x1c], edi
push ecx
lea ecx, [ebx + 0x126c]
call fcn.0045eba0
lea eax, [ebx + 0x1270]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.0041ab10
cmp dword [ebp - 0xa0], 0
jne 0x42bb40
cmp dword [ebx + 0x1004], 0
je 0x42b9e5
cmp dword [ebx + 0x100c], 0
jne 0x42bba8
mov eax, dword [ebp - 0xa8]
lea edi, [ebx + 0xd58]
jmp 0x42b9b2
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42bb6b
push 5
push eax
mov ecx, ebx
call fcn.0042c010
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x85c]
add ecx, 0x64
push 0
lea eax, [ecx + eax*2]
push eax
push str.ReadFile_dst_digest2_
jmp 0x42bba1
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x85c]
add ecx, 0x64
push 0
lea eax, [ecx + eax*2]
push eax
push str.ReadFile_dst_digest_
mov ecx, ebx
call fcn.0041a620
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x80]
jg 0x42bbc0
jl 0x42bc07
cmp edx, dword [ebp - 0x84]
jb 0x42bc07
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x42bbd2
push eax
call dword [sym.imp.KERNEL30.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x85c]
mov ecx, ebx
add eax, 0x32
push 2
lea eax, [esi + eax*2]
push eax
push str.Size_is_changed_dst_digest_
call fcn.0041a620
jmp 0x42bc0d
lea edi, [ebx + 0xd64]
cmp dword [ebp - 0x90], 0xffffffff
je 0x42bc95
mov esi, dword [edi + 4]
cmp esi, edi
je 0x42bc79
test esi, esi
je 0x42bc79
cmp esi, edi
je 0x42bc79
test esi, esi
je 0x42bc79
lea eax, [ebx + 0xd64]
nop
mov edi, dword [esi + 0x18]
test edi, edi
je 0x42bc6e
lea eax, [ebx + 0x1270]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
test edi, edi
je 0x42bc4f
mov dword [edi + 0x1c], 5
push ecx
lea ecx, [ebx + 0x126c]
call fcn.0045eba0
lea eax, [ebx + 0x1270]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
lea eax, [ebx + 0xd64]
mov esi, dword [esi + 4]
cmp esi, eax
je 0x42bc79
test esi, esi
jne 0x42bc30
mov esi, dword [ebp - 0x90]
lea eax, [ebx + 0xd54]
push eax
push esi
mov ecx, ebx
call fcn.004192f0
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
mov ecx, dword [ebp - 0x8c]
xor eax, eax
push 0
push ecx
cmp dword [ecx + 0x1c], 1
mov ecx, ebx
setne al
add eax, 3
mov dword [ebp - 0xa8], eax
call fcn.0042bd00
lea edi, [ebx + 0x1270]
mov esi, eax
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
test esi, esi
je 0x42bcd3
mov eax, dword [ebp - 0xa8]
mov dword [esi + 0x1c], eax
push ecx
lea ecx, [ebx + 0x126c]
call fcn.0045eba0
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487555
mov esp, ebp
pop ebp
ret 4