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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64772f
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x6b7e64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x42c], ebx
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x410], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4093ea
test al, 0x10
jne 0x4093ea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 6
lea edx, [ebp - 0x410]
mov ecx, esi
call fcn.004c91a0
add esp, 8
test eax, eax
je 0x409425
cmp dword [ebx + 0x17c], 0
jne 0x40941e
push 0x10
push str.XenArmor_Wi_Fi_Password_Recovery_Pro
push str.Failed_to_create_SQLite_database_file_for_saving_the_password_report._nMake_sure_you_have_specified_valid_file_path.
mov ecx, ebx
call fcn.004dc5f6
xor eax, eax
jmp 0x409cf3
push str.CREATE_TABLE_PasswordReport_____t_t_t_WiFi_Name_TEXT_NOT_NULL___t_t_t_Signal_TEXT___t_t_t_Security_Settings_TEXT___t_t_t_Type_TEXT___t_t_t_Password_Hex_TEXT___t_t__t_Password_Text_TEXT___t_t_t_WiFi_Security_Analysis_TEXT__t_
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x428], 0
push 0x3e8
push eax
call fcn.00401df0
mov esi, dword [ebp - 0x410]
lea eax, [ebp - 0x428]
push eax
push 0
push 0
lea eax, [ebp - 0x3f8]
push eax
push esi
call fcn.00482c10
add esp, 0x20
test eax, eax
je 0x40947a
xor edx, edx
mov ecx, esi
call fcn.004c6cc0
xor eax, eax
jmp 0x409cf3
mov dword [ebp - 4], 1
call fcn.004e1f3c
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x409d49
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 4
call fcn.004e1f3c
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x409d53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 7
call fcn.004e1f3c
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x409d5d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], 0xa
call fcn.004e1f3c
mov ecx, eax
mov byte [ebp - 4], 9
test ecx, ecx
je 0x409d67
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 0xd
call fcn.004e1f3c
mov ecx, eax
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x409d71
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x430], edi
mov byte [ebp - 4], 0x10
call fcn.004e1f3c
mov ecx, eax
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x409d7b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x434], esi
mov byte [ebp - 4], 0x13
call fcn.004e1f3c
mov ecx, eax
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x409d85
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
push 0
push 0
push 0x1004
mov byte [ebp - 4], 0x14
push dword [ebx + 0x790]
mov dword [ebp - 0x408], 0
call dword [sym.imp.USER32.dll_SendMessageA]
or ebx, 0xffffffff
test eax, eax
jle 0x409bf7
mov eax, dword [ebp - 0x42c]
add eax, 0x770
xor ecx, ecx
mov dword [ebp - 0x40c], eax
push 0
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.004e2821
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.0040bf80
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
mov dword [ebp - 0x3fc], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x404], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x40966d
lea eax, [ecx + 0xc]
mov dword [ebp - 0x400], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x40965e
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x40965e
push dword [ebp - 0x404]
call fcn.0040c5f0
mov edx, dword [ebp - 0x400]
add esp, 4
mov dword [ebp - 0x404], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409653
mov eax, dword [ebp - 0x3fc]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x404]
add eax, 0x10
mov dword [ebp - 0x424], eax
jmp 0x40966d
push dword [edx - 0xc]
lea ecx, [ebp - 0x424]
push edx
call fcn.00403490
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x438]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40968e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x43c]
push 1
push dword [ebp - 0x408]
push eax
call fcn.004e2821
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.0040bf80
mov ecx, dword [ebp - 0x414]
add ecx, 0xfffffff0
mov dword [ebp - 0x404], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x3fc], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x409740
lea eax, [ecx + 0xc]
mov dword [ebp - 0x400], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x409731
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x409731
push dword [ebp - 0x3fc]
call fcn.0040c5f0
mov edx, dword [ebp - 0x400]
add esp, 4
mov dword [ebp - 0x3fc], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409726
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3fc]
add eax, 0x10
mov dword [ebp - 0x414], eax
jmp 0x409740
push dword [edx - 0xc]
lea ecx, [ebp - 0x414]
push edx
call fcn.00403490
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x43c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409761
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x440]
push 2
push dword [ebp - 0x408]
push eax
call fcn.004e2821
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.0040bf80
mov ecx, dword [ebp - 0x420]
add ecx, 0xfffffff0
mov dword [ebp - 0x404], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x3fc], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x409813
lea eax, [ecx + 0xc]
mov dword [ebp - 0x400], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x409804
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x409804
push dword [ebp - 0x3fc]
call fcn.0040c5f0
mov edx, dword [ebp - 0x400]
add esp, 4
mov dword [ebp - 0x3fc], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4097f9
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3fc]
add eax, 0x10
mov dword [ebp - 0x420], eax
jmp 0x409813
push dword [edx - 0xc]
lea ecx, [ebp - 0x420]
push edx
call fcn.00403490
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x440]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409834
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x444]
push 3
push dword [ebp - 0x408]
push eax
call fcn.004e2821
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.0040bf80
mov ecx, dword [ebp - 0x41c]
add ecx, 0xfffffff0
mov dword [ebp - 0x404], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x3fc], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4098e6
lea eax, [ecx + 0xc]
mov dword [ebp - 0x400], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x4098d7
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4098d7
push dword [ebp - 0x3fc]
call fcn.0040c5f0
mov edx, dword [ebp - 0x400]
add esp, 4
mov dword [ebp - 0x3fc], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4098cc
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3fc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
jmp 0x4098e6
push dword [edx - 0xc]
lea ecx, [ebp - 0x41c]
push edx
call fcn.00403490
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409907
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x448]
push 4
push dword [ebp - 0x408]
push eax
call fcn.004e2821
mov ecx, eax
mov byte [ebp - 4], 0x19
call fcn.0040bf80
mov ecx, dword [ebp - 0x418]
add ecx, 0xfffffff0
mov dword [ebp - 0x404], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x3fc], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4099b9
lea eax, [ecx + 0xc]
mov dword [ebp - 0x400], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x4099aa
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4099aa
push dword [ebp - 0x3fc]
call fcn.0040c5f0
mov edx, dword [ebp - 0x400]
add esp, 4
mov dword [ebp - 0x3fc], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40999f
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3fc]
add eax, 0x10
mov dword [ebp - 0x418], eax
jmp 0x4099b9
push dword [edx - 0xc]
lea ecx, [ebp - 0x418]
push edx
call fcn.00403490
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x448]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4099da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x44c]
push 5
push dword [ebp - 0x408]
push eax
call fcn.004e2821
mov ecx, eax
mov byte [ebp - 4], 0x1a
call fcn.0040bf80
lea ecx, [edi - 0x10]
mov dword [ebp - 0x400], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x3fc], eax
cmp eax, ecx
je 0x409a7e
mov eax, dword [ecx + 0xc]
lea edi, [ecx + 0xc]
shr eax, 0x1f
test al, al
jne 0x409a69
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x409a69
push dword [ebp - 0x3fc]
call fcn.0040c5f0
add esp, 4
mov dword [ebp - 0x3fc], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x409a5e
mov edi, dword [ebp - 0x400]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3fc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x430], edi
jmp 0x409a7e
push dword [edx - 0xc]
lea ecx, [ebp - 0x430]
push edx
call fcn.00403490
mov edi, dword [ebp - 0x430]
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x44c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409a9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x450]
push 6
push dword [ebp - 0x408]
push eax
call fcn.004e2821
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.0040bf80
lea ecx, [esi - 0x10]
mov dword [ebp - 0x400], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x3fc], eax
cmp eax, ecx
je 0x409b43
mov eax, dword [ecx + 0xc]
lea esi, [ecx + 0xc]
shr eax, 0x1f
test al, al
jne 0x409b2e
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x409b2e
push dword [ebp - 0x3fc]
call fcn.0040c5f0
add esp, 4
mov dword [ebp - 0x3fc], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x409b23
mov esi, dword [ebp - 0x400]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3fc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x434], esi
jmp 0x409b43
push dword [edx - 0xc]
lea ecx, [ebp - 0x434]
push edx
call fcn.00403490
mov esi, dword [ebp - 0x434]
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x450]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409b64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
push edi
push dword [ebp - 0x418]
lea eax, [ebp - 0x3f8]
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push dword [ebp - 0x424]
push str.INSERT_INTO_PasswordReport_VALUES___s___s___s___s___s___s____s_
push 0x3e8
push eax
call fcn.00401df0
lea eax, [ebp - 0x428]
push eax
push 0
push 0
lea eax, [ebp - 0x3f8]
push eax
push dword [ebp - 0x410]
call fcn.00482c10
add esp, 0x3c
test eax, eax
mov eax, dword [ebp - 0x42c]
jne 0x409d11
inc dword [ebp - 0x408]
push 0
push 0
push 0x1004
push dword [eax + 0x790]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x408]
cmp ecx, eax
mov eax, dword [ebp - 0x40c]
jl 0x4095c4
mov ecx, dword [ebp - 0x410]
xor edx, edx
call fcn.004c6cc0
mov eax, dword [ebp - 0x42c]
cmp dword [eax + 0x17c], 0
jne 0x409c26
push 0x40
push str.XenArmor_Wi_Fi_Password_Recovery_Pro
push str.Successfully_saved_password_report_to_specified_SQLite_database_file
mov ecx, eax
call fcn.004dc5f6
mov dword [ebp - 0x428], 1
mov edx, dword [ebp - 0x414]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409c4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409c64
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x409c7b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409c98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409cb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409cd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x409ced
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0061e015
mov esp, ebp
pop ebp
ret 4
cmp dword [eax + 0x17c], 0
jne 0x409d2d
push 0x10
push str.XenArmor_Wi_Fi_Password_Recovery_Pro
push str.Failed_to_add_to_SQLite_database_file_due_to_internal_errors.
mov ecx, eax
call fcn.004dc5f6
mov ecx, dword [ebp - 0x410]
xor edx, edx
call fcn.004c6cc0
mov dword [ebp - 0x428], 0
jmp 0x409c30
push 0x80004005
call fcn.00401bc0
push 0x80004005
call fcn.00401bc0
push 0x80004005
call fcn.00401bc0
push 0x80004005
call fcn.00401bc0
push 0x80004005
call fcn.00401bc0
push 0x80004005
call fcn.00401bc0
push 0x80004005
call fcn.00401bc0
int3