Function at 0x40a960
Capabilities:
Get disk size
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ed03
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x170], 0
mov ecx, dword [ebp + 0xc]
call fcn.004056c0
movzx eax, al
test eax, eax
jne 0x40a9b9
mov ecx, dword [ebp + 0x10]
call fcn.004056c0
movzx ecx, al
test ecx, ecx
je 0x40a9da
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b720
mov edx, dword [ebp - 0x170]
or edx, 1
mov dword [ebp - 0x170], edx
mov eax, dword [ebp + 8]
jmp 0x40b631
mov byte [ebp - 0x39], 0
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
lea edx, [ebp - 0x39]
push edx
movzx eax, byte [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x1bc]
call fcn.0040a710
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], edx
mov edx, dword [ebp - 0x17c]
and edx, dword [ebp - 0x178]
cmp edx, 0xffffffff
jne 0x40aa73
push 0x4ba7f4
mov ecx, dword [ebp + 0x20]
call fcn.00405730
call fcn.00421970
cmp eax, 3
jg 0x40aa50
push str.get_download_file_lenth_failed
push 3
push str.Http::HttpModule::Download
push 0x263
push str.D:_tyb_updateUpdater_toolshttpUpdateHttp.cpp
call fcn.00421d50
add esp, 0x14
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b720
mov eax, dword [ebp - 0x170]
or eax, 1
mov dword [ebp - 0x170], eax
mov eax, dword [ebp + 8]
jmp 0x40b631
cmp dword [ebp - 0x17c], 0xfffffffe
jne 0x40aa92
cmp dword [ebp - 0x178], 0xffffffff
jne 0x40aa92
xorps xmm0, xmm0
movlpd qword [ebp - 0x17c], xmm0
jmp 0x40aac7
cmp dword [ebp - 0x178], 0
jg 0x40aac7
jl 0x40aaa6
cmp dword [ebp - 0x17c], 0
jae 0x40aac7
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b720
mov ecx, dword [ebp - 0x170]
or ecx, 1
mov dword [ebp - 0x170], ecx
mov eax, dword [ebp + 8]
jmp 0x40b631
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x190], eax
push 8
lea ecx, [ebp - 0x38]
call fcn.004053a0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00410010
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax + 4], 0
call fcn.00431ae0
mov dword [ebp - 0x16c], eax
push 5
push 0x1c20
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00409a70
add esp, 0xc
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x40ab7e
lea ecx, [ebp - 0x330]
push ecx
call fcn.00407670
add esp, 4
mov dword [ebp - 0x1c0], eax
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x1c4]
push ecx
call fcn.00409ab0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x330]
call fcn.00407640
mov ecx, dword [ebp + 0xc]
call fcn.00404610
push eax
push 0x2712
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x18c], xmm0
mov dword [ebp - 0x174], 0
push 0x4ba8a0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.004068e0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x178], 0
jl 0x40abeb
jg 0x40abe3
cmp dword [ebp - 0x17c], 0
jbe 0x40abeb
movzx edx, byte [ebp - 0x39]
test edx, edx
jne 0x40ac0c
push 0x4ba8a8
lea ecx, [ebp - 0x74]
call fcn.00404610
push eax
call fcn.0047c4a9
add esp, 8
mov dword [ebp - 0x174], eax
jmp 0x40acfe
push 0x4ba8ac
lea ecx, [ebp - 0x74]
call fcn.00404610
push eax
call fcn.0047c4a9
add esp, 8
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
jne 0x40ac7c
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00431aa0
add esp, 4
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b720
mov ecx, dword [ebp - 0x170]
or ecx, 1
mov dword [ebp - 0x170], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00404630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040b6d0
mov eax, dword [ebp + 8]
jmp 0x40b631
push 2
push 0
mov edx, dword [ebp - 0x174]
push edx
call fcn.0047c892
add esp, 0xc
mov eax, dword [ebp - 0x174]
push eax
call fcn.0047f46d
add esp, 4
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], edx
mov ecx, dword [ebp - 0x188]
cmp ecx, dword [ebp - 0x178]
jl 0x40acfe
jg 0x40acc8
mov edx, dword [ebp - 0x18c]
cmp edx, dword [ebp - 0x17c]
jb 0x40acfe
mov eax, dword [ebp - 0x174]
push eax
call fcn.0047c537
add esp, 4
push 0x4ba8b0
lea ecx, [ebp - 0x74]
call fcn.00404610
push eax
call fcn.0047c4a9
add esp, 8
mov dword [ebp - 0x174], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x18c], xmm0
cmp dword [ebp - 0x174], 0
jne 0x40ad52
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.00431aa0
add esp, 4
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b720
mov edx, dword [ebp - 0x170]
or edx, 1
mov dword [ebp - 0x170], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00404630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040b6d0
mov eax, dword [ebp + 8]
jmp 0x40b631
lea ecx, [ebp - 0x54]
call fcn.00405750
mov byte [ebp - 4], 3
mov dword [ebp - 0x164], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x15c], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x154], xmm0
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x13c], 1
mov byte [ebp - 0x13b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x188], 0
jl 0x40ae95
jg 0x40ade5
cmp dword [ebp - 0x18c], 0
jbe 0x40ae95
cmp dword [ebp - 0x178], 0
jl 0x40ae95
jg 0x40ae01
cmp dword [ebp - 0x17c], 0
jbe 0x40ae95
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x18c]
push eax
push str._I64d_
lea ecx, [ebp - 0x30]
push ecx
call fcn.00410110
add esp, 0x10
mov edx, dword [ebp - 0x194]
sub edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x190]
sbb eax, dword [ebp - 0x188]
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x18c]
call fcn.00476920
movsd qword [ebp - 0x154], xmm0
lea ecx, [ebp - 0x30]
push ecx
push 0x2717
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
push 0
push 0x4ba8bc
mov ecx, dword [ebp + 0x10]
call fcn.0040c700
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x178], 0
jl 0x40b149
jg 0x40aec6
cmp dword [ebp - 0x17c], 0
jbe 0x40b149
cmp dword [ebp - 0x198], 0
jb 0x40b149
mov eax, dword [ebp - 0x198]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00406580
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
push edx
lea ecx, [ebp - 0x54]
call fcn.00406600
lea ecx, [ebp - 0x208]
call fcn.00404630
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x54]
call fcn.00404610
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0
je 0x40b149
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], ecx
mov eax, dword [ebp - 0x184]
mov edx, dword [ebp - 0x180]
mov cl, 0x20
call fcn.0049d7b0
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], edx
mov edx, dword [ebp - 0x5c]
xor eax, eax
or edx, dword [ebp - 0x184]
or eax, dword [ebp - 0x180]
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x190]
cmp ecx, dword [ebp - 0x180]
jl 0x40b149
jg 0x40afb2
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 0x184]
jbe 0x40b149
mov eax, dword [ebp - 0x174]
push eax
call fcn.0047c537
add esp, 4
mov dword [ebp - 0x174], 0
push 0x47c3b7
lea ecx, [ebp - 0x1f0]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040c7b0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040c770
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x1e8]
push edx
lea ecx, [ebp - 0x54]
call fcn.0040c7b0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1e0]
push ecx
call fcn.00410140
add esp, 0x14
push 0xb0
lea ecx, [ebp - 0x134]
call fcn.004053a0
push 1
lea ecx, [ebp - 0x134]
call fcn.0040c2f0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x194]
sub edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x190]
sbb eax, dword [ebp - 0x180]
push 0
push 0x100000
push eax
push edx
call fcn.00476730
add eax, 1
adc edx, 0
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], edx
push 0x4ba8c0
mov ecx, dword [ebp - 0x1b4]
push ecx
mov edx, dword [ebp - 0x1b8]
push edx
push 0x4ba8c8
lea eax, [ebp - 0x54]
push eax
push 0x4ba8e0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040fce0
add esp, 8
push eax
call fcn.0040fcb0
add esp, 8
push eax
call fcn.0040fce0
add esp, 8
mov ecx, eax
call fcn.0040c430
push eax
call fcn.0040fce0
add esp, 8
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x134]
call fcn.0040c250
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1d0]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.00406600
lea ecx, [ebp - 0x298]
call fcn.00404630
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b720
mov ecx, dword [ebp - 0x170]
or ecx, 1
mov dword [ebp - 0x170], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x134]
call fcn.00409ff0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00404630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00404630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040b6d0
mov eax, dword [ebp + 8]
jmp 0x40b631
push 0
push 0x2c
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x164]
push eax
push 0x2711
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
push 0x40a020
push 0x4e2b
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
push 0x409d40
push 0x4e58
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x164]
push ecx
push 0x2749
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
push 0
push 0x2b
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
push 1
push 0x34
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
push 1
push 0x50
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00434c90
add esp, 0xc
push 0
push 0x2a
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00434c90
add esp, 0xc
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.00431b80
add esp, 4
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x174]
push edx
call fcn.0047c537
add esp, 4
mov dword [ebp - 0x174], 0
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov ecx, dword [ebp - 0x168]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x19c], edx
cmp dword [ebp - 0x19c], 0x61
ja case.0x40b2a5.1
mov eax, dword [ebp - 0x19c]
movzx ecx, byte [eax + 0x40b66c]
jmp dword [ecx*4 + 0x40b64c]
mov ecx, dword [ebp + 0x10]
call fcn.00404610
push eax
call fcn.0047e9d5
add esp, 4
mov ecx, dword [ebp + 0x10]
call fcn.00404610
push eax
lea ecx, [ebp - 0x74]
call fcn.00404610
push eax
call fcn.0047ea4a
add esp, 8
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 0
mov dword [ebp - 0x1e4], 0xc8
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 8
push eax
push 0x200002
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00431ac0
add esp, 0xc
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1d4], eax
mov edx, dword [ebp - 0x1d4]
push edx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x220]
call fcn.00404630
jmp 0x40b5dd
mov eax, dword [ebp + 0x1c]
mov cl, byte [ebp - 0x13b]
mov byte [eax], cl
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 6
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x238]
push eax
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x238]
call fcn.00404630
jmp 0x40b5dd
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 4
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1dc]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x250]
call fcn.00404630
push 0x4ba8ec
mov ecx, dword [ebp + 0x20]
call fcn.00405730
jmp 0x40b5dd
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 5
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x268]
call fcn.00404630
push 0x4ba914
mov ecx, dword [ebp + 0x20]
call fcn.00405730
jmp 0x40b5dd
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 5
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x280]
push eax
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x280]
call fcn.00404630
push 0x4ba93c
mov ecx, dword [ebp + 0x20]
call fcn.00405730
jmp 0x40b5dd
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 5
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x2e0]
call fcn.00404630
push 0x4ba968
mov ecx, dword [ebp + 0x20]
call fcn.00405730
jmp 0x40b5dd
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 5
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x2b0]
push eax
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x2b0]
call fcn.00404630
push 0x4ba990
mov ecx, dword [ebp + 0x20]
call fcn.00405730
jmp 0x40b5dd
lea ecx, [ebp - 0x38]
call fcn.004100f0
mov dword [eax], 5
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x2c8]
push eax
call fcn.00409280
add esp, 8
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004100f0
add eax, 0xc
mov ecx, eax
call fcn.00406600
lea ecx, [ebp - 0x2c8]
call fcn.00404630
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00431aa0
add esp, 4
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b6f0
mov ecx, dword [ebp - 0x170]
or ecx, 1
mov dword [ebp - 0x170], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00404630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00404630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040b6d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret 0x24