Function at 0x46cb90
Capabilities:
Delete file
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540002
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x1c4]
mov dword [ebp - 0x30], esi
cmp eax, edi
mov dword [ebp - 0x20], edi
jne 0x46cbcd
call fcn.00477e00
mov eax, dword [0x591288]
mov dword [ebp - 0x1c], 0x1042
mov dword [ebp - 0x18], eax
mov al, byte [esi + 0x1ac]
mov ebx, 2
test bl, al
mov dword [ebp - 4], edi
je 0x46cc06
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.00465160
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], bl
jmp 0x46cc17
lea edx, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.00465200
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.0050d536
test bl, 2
mov dword [ebp - 4], 1
je 0x46cc3a
and ebx, 0xfffffffd
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], ebx
call fcn.0050d3fd
test bl, 1
mov dword [ebp - 4], edi
je 0x46cc50
and ebx, 0xfffffffe
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], ebx
call fcn.0050d3fd
lea eax, [ebp - 0x28]
push 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00505bc9
mov eax, dword [eax]
push str..jc_
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [ebp - 0x28]
test eax, eax
setne byte [ebp - 0x29]
call fcn.0050d3fd
mov al, byte [ebp - 0x29]
test al, al
je 0x46cce7
lea ecx, [ebp - 0x18]
push str..jc_
lea edx, [ebp - 0x14]
push ecx
push edx
call fcn.0050d692
mov ecx, 0x50
xor eax, eax
lea edi, [ebp - 0x194]
mov byte [ebp - 4], 3
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x194]
push eax
push ecx
mov dword [ebp - 0x1c], 0x3042
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x46ccd9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push eax
call fcn.0050e4cf
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0050d3fd
xor edi, edi
mov ecx, esi
call fcn.00479280
test eax, eax
jne 0x46cd02
mov ecx, esi
call fcn.004792d0
test eax, eax
jne 0x46cd02
mov dword [ebp - 0x28], edi
jmp 0x46cd10
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0x1042
mov ecx, esi
call fcn.004658a0
or eax, edx
je 0x46cd50
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
or ch, 0x20
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov ecx, 0x50
lea edi, [ebp - 0x3d4]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x3d4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x46cd9f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x5c
call fcn.0042eff0
mov ecx, eax
call fcn.0042f3e0
mov edi, eax
test edi, edi
je 0x46ce79
mov eax, dword [esi + 0x264]
test eax, eax
jne 0x46ce79
push 1
mov ecx, esi
call fcn.004742b0
test eax, eax
je 0x46ce79
cmp edi, 2
jne 0x46cdd5
push 0
push 0xef6e
mov ecx, esi
call fcn.0046bab0
jmp 0x46d4c4
push 2
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.0050d172
mov ecx, esi
call fcn.0046ba40
push 2
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.Not_find_downloaded_file__cant_resume_
call fcn.0050d46b
mov ecx, esi
call fcn.0046ba40
jmp 0x46d4c4
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x596660
call fcn.0050d46b
mov ecx, dword [esi + 0x1ac]
push 1
and ecx, 2
lea edx, [ebp - 0x34]
push ecx
push edx
mov ecx, esi
call fcn.00474430
lea ecx, [ebp - 0x34]
call fcn.0050d3fd
test byte [esi + 0x1ac], 2
je 0x46ce24
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00465160
or ebx, 4
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 4
jmp 0x46ce3c
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.00465200
or ebx, 8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
call fcn.0050d536
test bl, 8
mov dword [ebp - 4], 4
je 0x46ce5f
and ebx, 0xfffffff7
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], ebx
call fcn.0050d3fd
test bl, 4
mov dword [ebp - 4], 0
je 0x46ce79
and ebx, 0xfffffffb
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call fcn.0050d3fd
push ecx
lea edx, [esi + 0x27c]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call fcn.0050d172
call fcn.0043e320
mov eax, dword [esi + 0x264]
add esp, 4
test eax, eax
jne 0x46cfd6
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00465010
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x34]
call fcn.0050d172
push 0x5f
push 0x3f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0050591f
push 0x5f
push 0x2a
lea ecx, [ebp - 0x14]
call fcn.0050591f
push 0x5f
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.0050591f
push 0x5f
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0050591f
push 0x5f
push 0x3c
lea ecx, [ebp - 0x14]
call fcn.0050591f
push 0x5f
push 0x3e
lea ecx, [ebp - 0x14]
call fcn.0050591f
push 0x5f
push 0x22
lea ecx, [ebp - 0x14]
call fcn.0050591f
push 0x5f
push 0x7c
lea ecx, [ebp - 0x14]
call fcn.0050591f
push 0x5f
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.0050591f
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
push edx
push eax
call fcn.004ee0f0
add esp, 8
test eax, eax
je 0x46cfbe
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + 0x1e4]
call fcn.0050d536
test byte [esi + 0x1ac], 2
je 0x46cf6f
lea edx, [ebp - 0x24]
mov ecx, esi
push edx
call fcn.00465160
or ebx, 0x10
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 8
jmp 0x46cf87
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00465200
or ebx, 0x20
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 9
push eax
lea ecx, [ebp - 0x18]
call fcn.0050d536
test bl, 0x20
mov dword [ebp - 4], 8
je 0x46cfaa
and ebx, 0xffffffdf
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
call fcn.0050d3fd
test bl, 0x10
mov dword [ebp - 4], 7
je 0x46cfbe
lea ecx, [ebp - 0x24]
call fcn.0050d3fd
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0050d3fd
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0050d3fd
mov eax, dword [esi + 0x300]
push 0
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0x20]
lea ecx, [ebp - 0x214]
mov edi, eax
push 0x80
lea edx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x294]
push 0x80
push edx
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test edi, edi
je 0x46d36a
mov eax, dword [esi + 0x264]
test eax, eax
jne 0x46d357
mov eax, dword [esi + 0x244]
test ah, 2
je 0x46d357
mov eax, dword [esi + 0x1dc]
test eax, eax
jl 0x46d357
jg 0x46d065
mov eax, dword [esi + 0x1d8]
test eax, eax
jbe 0x46d357
push 0x203
call fcn.0042eff0
mov ecx, eax
call fcn.0042f3e0
test eax, eax
je 0x46d357
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x46d161
lea ecx, [ebp - 0x24]
push 3
push ecx
lea ecx, [ebp - 0x18]
call fcn.00505c45
mov eax, dword [eax]
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x54]
push ecx
push edx
push eax
mov byte [ebp - 4], 0xa
call ebx
lea ecx, [ebp - 0x24]
mov ebx, eax
mov byte [ebp - 4], 0
call fcn.0050d3fd
cmp ebx, 1
jne 0x46d161
mov eax, dword [esi + 0x1dc]
mov ecx, dword [ebp - 0x3c]
cmp eax, ecx
jl 0x46d161
jg 0x46d0f5
mov ecx, dword [esi + 0x1d8]
mov eax, dword [ebp - 0x40]
cmp ecx, eax
jbe 0x46d161
mov edx, dword [0x591288]
mov dword [ebp - 0x20], edx
push 0xf411
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.004c9660
push 2
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.0050d172
mov ecx, esi
call fcn.0046ba40
mov esi, dword [esi + 0x300]
mov byte [ebp - 4], 0xc
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
call dword [edx + 0x4c]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
jmp 0x46d4bf
push 0
mov ecx, esi
call fcn.0046b570
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0041f2a0
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
push edx
call fcn.0042eff0
mov ecx, eax
call fcn.0043fa10
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xf
call fcn.00505d35
cmp eax, 0xffffffff
lea ecx, [ebp - 0x24]
sete bl
mov byte [ebp - 4], 0xe
call fcn.0050d3fd
test bl, bl
je 0x46d223
mov eax, dword [esi + 0x1dc]
test eax, eax
jl 0x46d223
jg 0x46d1c6
cmp dword [esi + 0x1d8], 0x80000
jbe 0x46d223
mov eax, dword [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004782b0
test eax, eax
jne 0x46d223
mov ecx, esi
call fcn.00465980
test eax, eax
jne 0x46d223
mov eax, dword [esi + 0x268]
mov ecx, esi
push eax
call fcn.004784d0
test eax, eax
je 0x46d223
mov eax, dword [esi + 0xf0]
mov ecx, esi
push eax
call fcn.004784d0
test eax, eax
je 0x46d223
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x46d223
mov ecx, dword [esi + 0x1dc]
mov edx, dword [esi + 0x1d8]
push ecx
push edx
mov ecx, esi
call fcn.0046e9f0
mov eax, dword [ebp - 0x28]
xor edi, edi
test eax, eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 0x10
je 0x46d24e
mov eax, dword [esi + 0x300]
mov edx, dword [esi + 0x1d8]
push edx
lea ecx, [eax + 4]
mov eax, dword [eax + 4]
call dword [eax + 0x2c]
jmp 0x46d345
call fcn.0042eff0
mov ebx, eax
push 1
push str.allocdiskpop
push 0x588a34
mov ecx, ebx
call fcn.0052bdb3
test eax, eax
je 0x46d274
mov edi, 1
mov dword [ebp - 0x34], edi
mov eax, dword [esi + 0x1dc]
test eax, eax
jl 0x46d2fb
jg 0x46d28c
cmp dword [esi + 0x1d8], 0x6400000
jbe 0x46d2fb
test edi, edi
je 0x46d2ac
push 0
push 0
push 0
push 0
push 0x5553e8
mov dword [ebx + 0x488], 1
call fcn.0050ecf8
mov ecx, esi
call fcn.00479550
test eax, eax
je 0x46d2da
mov eax, dword [esi + 0x1d8]
mov ecx, dword [esi + 0x1dc]
sub eax, 1
push 0
sbb ecx, 0
push ecx
mov ecx, dword [esi + 0x300]
push eax
call fcn.0048f720
jmp 0x46d2f3
mov eax, dword [esi + 0x300]
push 0
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
mov eax, dword [esi + 0x1d8]
dec eax
push eax
call dword [edx + 0x28]
cmp dword [ebp - 0x1c], 1
jne 0x46d332
jmp 0x46d31a
mov eax, dword [esi + 0x300]
push 0
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
mov eax, dword [esi + 0x1d8]
dec eax
push eax
call dword [edx + 0x28]
cmp dword [ebp - 0x1c], 1
jne 0x46d332
mov eax, dword [esi + 0x300]
push 1
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
lea eax, [ebp - 0x154]
push eax
call dword [edx + 0x38]
test edi, edi
je 0x46d345
call fcn.0042eff0
mov dword [eax + 0x488], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0050d3fd
mov edi, dword [ebp - 0x1c]
push 1
mov ecx, esi
mov dword [esi + 0x264], 1
call fcn.004750f0
mov eax, dword [esi + 0x244]
mov ebx, 1
test ah, 2
je 0x46d390
mov ecx, esi
call fcn.00465780
test edx, edx
jl 0x46d390
jg 0x46d38e
cmp eax, 0x19000
jbe 0x46d390
xor ebx, ebx
mov ecx, dword [esi + 0x300]
push ebx
call fcn.0048f6b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0050d3fd
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0050d3fd
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0050d3fd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret