Function at 0x4290a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x80], eax
push esi
push edi
mov esi, dword [ebx + 0x8d0]
test esi, esi
je 0x429109
cmp dword [eax + 0xc], 0
jl 0x429109
jg 0x4290d9
cmp dword [eax + 8], 0x80000
jb 0x429109
mov edi, dword [ebx + 0x694]
xor eax, eax
mov edx, dword [ebx + 0x690]
mov ecx, edi
and ecx, 0x40
or eax, ecx
jne 0x4290fc
test dword [ebx + 0x8cc], 0x2000
jne 0x429109
mov ecx, 1
mov dword [ebp - 0x90], edi
jmp 0x42911d
mov eax, dword [ebx + 0x694]
xor ecx, ecx
mov edx, dword [ebx + 0x690]
mov dword [ebp - 0x90], eax
and edx, 2
mov dword [ebp - 0xa0], ecx
or edx, 0
mov eax, 0x8000000
jne 0x429135
mov eax, 0x28000000
mov edi, dword [ebx + 0x888]
xorps xmm0, xmm0
neg edi
mov dword [ebp - 0x84], 0xffffffff
movlpd qword [ebp - 0x7c], xmm0
sbb edi, edi
xor edx, edx
and edi, 0x2000000
test ecx, ecx
lea ecx, [ebx + 0xd54]
cmove esi, edx
or edi, esi
or edi, eax
mov eax, dword [ecx + 4]
cmp eax, ecx
je 0x4291a7
test eax, eax
je 0x4291a7
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x1a
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push str.x_p
call fcn.00459e20
add esp, 8
int3
mov ecx, ebx
call fcn.00419990
mov esi, dword [ebp - 0x80]
cmp dword [esi + 0x1c], 1
je 0x4296b8
mov ecx, dword [esi + 8]
mov eax, ecx
mov edx, dword [esi + 0xc]
or eax, edx
je 0x429224
push 5
push ecx
push edi
sub esp, 8
lea eax, [esi + 0x64]
mov ecx, ebx
push 3
push 0x80000000
push eax
call fcn.00426c70
mov esi, eax
mov dword [ebp - 0x84], esi
cmp esi, 0xffffffff
jne 0x429210
mov edx, dword [ebp - 0x80]
mov ecx, ebx
mov eax, dword [ebx + 0x84c]
add edx, 0x64
push 0
lea eax, [edx + eax*2]
push eax
push str.OpenFile_dst_digest_
call fcn.00419420
jmp 0x4296b8
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x80]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
cmp dword [ebp - 0x7c], ecx
jne 0x42963e
cmp dword [ebp - 0x78], edx
jne 0x42963e
or ecx, edx
jne 0x429261
push ecx
push esi
mov ecx, ebx
call fcn.00429700
test eax, eax
je 0x429614
push 2
push eax
mov ecx, ebx
mov dword [eax + 0x24], 0
call fcn.00429930
jmp 0x429614
cmp dword [ebp - 0x78], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x94], xmm0
jl 0x429614
jg 0x42928a
cmp dword [ebp - 0x7c], 0
jbe 0x429614
cmp dword [ebx + 0xff4], 0
mov edx, 0xa
jne 0x4295fc
mov ecx, dword [ebx + 0xfec]
test ecx, ecx
je 0x4292c8
mov eax, dword [ebx + 0x690]
and eax, 0x100
or eax, 0
je 0x4292c8
cmp edx, ecx
sbb edx, edx
and edx, 0xfff40000
add edx, 0x100000
jmp 0x4292ce
mov edx, dword [ebx + 0x8c0]
cmp dword [ebp - 0xa0], 0
je 0x429310
mov eax, dword [ebx + 0x6bc]
mov ecx, 0x14
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebx + 0x6b8]
imul eax, ecx
cmp dword [ebp - 0x78], 0
jg 0x429310
jl 0x4292fd
cmp dword [ebp - 0x7c], eax
jae 0x429310
push dword [ebp - 0x78]
lea ecx, [ebx + 0x680]
push dword [ebp - 0x7c]
call fcn.00412830
mov edx, eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x78]
sbb ecx, dword [ebp - 0x88]
js 0x42932a
jg 0x42932c
cmp eax, edx
ja 0x42932c
mov edx, eax
mov ecx, dword [ebx + 0x8ac]
mov esi, dword [ebx + 0xd4c]
lea edi, [ecx - 1]
add edi, edx
xor edx, edx
mov eax, edi
div ecx
sub edi, edx
lea edx, [ebx + 0xd48]
cmp esi, edx
jne 0x429353
xor esi, esi
jmp 0x42937e
test esi, esi
je 0x42937e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x429362
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x42936e
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 + 0xd54]
lea ecx, [ebx + 0xd54]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, dword [ecx]
push edi
push dword [ebp - 0x80]
mov dword [eax + 4], esi
inc dword [ecx + 8]
mov eax, dword [ebp - 0x90]
mov dword [ecx], esi
mov ecx, dword [ebp - 0x94]
add ecx, dword [ebp - 0x8c]
mov dword [esi + 0x24], ecx
mov ecx, ebx
adc eax, dword [ebp - 0x88]
mov dword [esi + 0x28], eax
call fcn.00429700
mov dword [esi + 0x18], eax
test eax, eax
je 0x4295fc
cmp dword [ebx + 0xff4], 0
jne 0x4295fc
push esi
push edi
push dword [eax + 0x68]
mov ecx, ebx
push dword [ebp - 0x84]
call fcn.004218d0
test eax, eax
je 0x4295de
mov ecx, dword [ebp - 0x94]
add ecx, dword [esi + 8]
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
adc eax, 0
mov dword [ebp - 0x94], ecx
add ecx, edx
mov dword [ebp - 0x90], eax
adc eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x78]
jg 0x42943f
jl 0x42942c
cmp ecx, dword [ebp - 0x7c]
jae 0x42943f
cmp dword [ebx + 0xdb4], 0
jne 0x42943f
cmp byte [esi + 0x10], 0
je 0x42943f
xor eax, eax
jmp 0x429444
mov eax, 1
lea edi, [ebx + 0xd48]
mov dword [ebp - 0x98], eax
cmp dword [edi + 4], edi
je 0x42945d
test eax, eax
je 0x429599
mov eax, 1
mov esi, dword [ebx + 0xd58]
lea ecx, [ebx + 0xd54]
cmp esi, ecx
je 0x42958a
test esi, esi
je 0x42958a
push eax
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp - 0x84]
call fcn.00417ae0
mov dword [ebp - 0x9c], eax
cmp eax, 2
je 0x42958a
mov ecx, dword [ebx + 0xd58]
lea edx, [ebx + 0xd54]
cmp ecx, edx
je 0x4294eb
test ecx, ecx
je 0x4294eb
mov edi, dword [ecx + 4]
test edi, edi
je 0x4294c9
mov eax, dword [ecx]
mov dword [edi], eax
mov edi, dword [ecx]
test edi, edi
je 0x4294d5
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov dword [ecx + 4], 0
lea edi, [ebx + 0xd48]
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 - 0x9c], 0
mov dword [edi], esi
je 0x4295b4
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebx + 0xb50]
mov eax, dword [esi + 0xc]
add dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x88]
adc dword [ecx + 0x54], 0
cmp eax, dword [ebp - 0x78]
jl 0x42954d
jg 0x429546
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x7c]
jb 0x42954d
mov eax, 2
jmp 0x429552
mov eax, 1
push eax
push dword [esi + 0x18]
mov ecx, ebx
call fcn.00429930
mov ecx, ebx
call fcn.00419990
cmp dword [ebp - 0x98], 0
jne 0x429576
cmp dword [ebx + 0xfec], 0
je 0x42958a
cmp dword [ebx + 0xff4], 0
jne 0x4295fc
mov eax, dword [ebp - 0x9c]
jmp 0x429462
cmp dword [ebx + 0xff4], 0
jne 0x4295fc
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x78]
jg 0x429614
jl 0x42928a
cmp edx, dword [ebp - 0x7c]
jae 0x429614
jmp 0x42928a
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4295c5
push 5
push eax
mov ecx, ebx
call fcn.00429930
mov edx, dword [ebp - 0x80]
mov eax, dword [ebx + 0x84c]
add edx, 0x64
push 0
lea eax, [edx + eax*2]
push eax
push str.ReadFile_dst_digest2_
jmp 0x4295f5
mov edx, dword [ebp - 0x80]
mov eax, dword [ebx + 0x84c]
add edx, 0x64
push 0
lea eax, [edx + eax*2]
push eax
push str.ReadFile_dst_digest_
mov ecx, ebx
call fcn.00419420
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x78]
jg 0x429614
jl 0x429659
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x7c]
jb 0x429659
mov eax, dword [ebp - 0x84]
cmp eax, 0xffffffff
je 0x429626
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 [ebx + 0x84c]
mov ecx, ebx
add eax, 0x32
push 2
lea eax, [esi + eax*2]
push eax
push str.Size_is_changed_dst_digest_
call fcn.00419420
cmp dword [ebp - 0x84], 0xffffffff
je 0x4296b8
mov esi, dword [ebx + 0xd58]
lea edi, [ebx + 0xd54]
cmp esi, edi
je 0x42969c
test esi, esi
je 0x42969c
cmp esi, edi
je 0x42969c
test esi, esi
je 0x42969c
nop
mov eax, dword [esi + 0x18]
test eax, eax
je 0x429691
push 5
push eax
mov ecx, ebx
call fcn.00429930
mov esi, dword [esi + 4]
cmp esi, edi
je 0x42969c
test esi, esi
jne 0x429680
mov esi, dword [ebp - 0x84]
lea eax, [ebx + 0xd44]
push eax
push esi
mov ecx, ebx
call fcn.00418340
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x80]
xor eax, eax
cmp dword [ecx + 0x1c], 1
setne al
add eax, 3
push eax
push ecx
push 0
push ecx
mov ecx, ebx
call fcn.00429700
add esp, 4
mov ecx, ebx
push eax
call fcn.00429930
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