Function at 0x5078a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b213f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
mov eax, dword [0x614cb0]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
mov ebx, 1
mov dword [ebp - 4], edi
push ebx
mov dword [ebp - 0x2c], edi
mov dword [0x610d40], edi
mov dword [0x610d44], 0xbff00000
call fcn.00506600
test eax, eax
jne 0x507920
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00575ae8
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x60]
call fcn.005760db
mov ecx, dword [ebp + 8]
push edi
push 0x4000
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00576150
test eax, eax
jne 0x50794e
mov ecx, esi
call fcn.00506720
jmp 0x5079dd
push edi
lea ecx, [ebp - 0x1a8]
call fcn.00506430
lea edx, [esi + 0x10]
push str..tmp
lea eax, [ebp - 0x24]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.00575d7d
mov ecx, dword [0x614cb0]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1a8]
push eax
call fcn.005065e0
push 2
lea ecx, [ebp - 0x1a8]
call fcn.00506600
test eax, eax
jne 0x507a10
mov ecx, esi
call fcn.00506720
lea ecx, [ebp - 0x60]
call fcn.00576480
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00575ae8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00575ae8
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 1
call fcn.00506500
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0057610d
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00575ae8
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push 0x1000
lea ecx, [esi + 0x14]
push ebx
push ecx
lea ecx, [ebp - 0x108]
call fcn.00579d2d
push edi
push 0x1000
lea edx, [ebp - 0x60]
push ebx
push edx
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 5
call fcn.00579d2d
push edi
push 0x1000
lea eax, [ebp - 0x194]
push edi
push eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.00579d2d
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.0057700b
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 9
call fcn.0051d950
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xa
call fcn.0051d950
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x28], edi
mov ecx, dword [esi + 8]
push 0xfffffc00
push ecx
lea ecx, [ebp - 0x108]
call fcn.0057a1f7
cmp eax, edi
jne 0x507aab
mov dword [ebp - 0x28], ebx
jmp 0x507ac3
mov eax, dword [esi + 8]
lea edx, [ebp - 0x340]
push 4
push edx
push eax
mov ecx, esi
call fcn.00509810
cmp eax, edi
je 0x507a8e
mov ecx, dword [0x614cb0]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0xc
mov edi, 0xf
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.0050b9d0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call fcn.00575c21
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.00575ae8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x507eed
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x248]
push ecx
push edx
push eax
call fcn.0050abf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x507b45
lea eax, [ebp + 8]
push 0x600f14
lea ecx, [ebp - 0x3c]
push eax
push ecx
call fcn.00575d7d
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 0xe
jmp 0x507b59
push 0x618f40
lea ecx, [ebp - 0x38]
call fcn.00575b56
or dword [ebp - 0x14], 2
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00575f00
mov al, byte [ebp - 0x14]
mov dword [ebp - 4], 0xe
test esi, esi
sete bl
test al, 2
je 0x507b85
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
and al, 0xfd
mov dword [ebp - 0x14], eax
call fcn.00575ae8
mov al, byte [ebp - 0x14]
mov dword [ebp - 4], 0xc
test al, 1
je 0x507ba3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
and al, 0xfe
mov dword [ebp - 0x14], eax
call fcn.00575ae8
test bl, bl
jne 0x507ad5
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x507ee8
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x338]
push edx
call fcn.0054ea5d
test eax, eax
je 0x507c22
mov eax, dword [esi + 8]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0057a1da
mov ecx, dword [esi + 8]
push 0xfffffc00
push ecx
lea ecx, [ebp - 0x108]
call fcn.0057a1f7
test eax, eax
jne 0x507c05
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 1
jmp 0x507bb1
mov eax, dword [esi + 8]
lea edx, [ebp - 0x340]
push 4
push edx
push eax
mov ecx, esi
call fcn.00509810
test eax, eax
je 0x507be1
mov eax, dword [ebp + 8]
jmp 0x507bb1
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x338]
call fcn.0054ea93
test eax, eax
je 0x507d4b
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x248]
push edx
push eax
mov ecx, esi
call fcn.00508ff0
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0057a1da
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.0050b9d0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x10
call fcn.00575c21
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00575ae8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x507ca9
mov dword [ebp - 0x28], 2
jmp 0x507bae
lea ecx, [ebp - 0x248]
push edi
push ecx
push eax
call fcn.0050abf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x507cdc
lea edx, [ebp + 8]
push 0x600f14
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.00575d7d
or dword [ebp - 0x14], 4
mov byte [ebp - 4], 0x11
jmp 0x507cf4
push 0x618f40
lea ecx, [ebp - 0x38]
call fcn.00575b56
or dword [ebp - 0x14], 8
mov dword [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x1c]
call fcn.00575f00
mov al, byte [ebp - 0x14]
mov dword [ebp - 4], 0x11
test esi, esi
sete bl
test al, 8
je 0x507d20
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
and al, 0xf7
mov dword [ebp - 0x14], eax
call fcn.00575ae8
mov al, byte [ebp - 0x14]
mov dword [ebp - 4], 0xc
test al, 4
je 0x507d3e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
and al, 0xfb
mov dword [ebp - 0x14], eax
call fcn.00575ae8
test bl, bl
jne 0x507c67
jmp 0x507bab
mov ecx, dword [esi + 8]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0057a1da
mov edx, dword [esi + 8]
push 0xfffffc00
push edx
lea ecx, [ebp - 0x108]
call fcn.0057a1f7
test eax, eax
jne 0x507d81
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], 1
mov byte [eax], 0
jmp 0x507d99
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x340]
push 4
push ecx
push edx
mov ecx, esi
call fcn.00509810
test eax, eax
je 0x507d5a
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0x4c]
push eax
push ecx
mov ecx, esi
call fcn.0050b9d0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x13
call fcn.00575c21
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00575ae8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x507dda
mov dword [ebp - 0x28], 2
jmp 0x507bb1
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x248]
push edx
push ecx
push eax
call fcn.0050abf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x507e10
lea edx, [ebp + 8]
push 0x600f14
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.00575d7d
or dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0x14
jmp 0x507e28
push 0x618f40
lea ecx, [ebp - 0x30]
call fcn.00575b56
or dword [ebp - 0x14], 0x20
mov dword [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x1c]
call fcn.00575f00
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0x14
test bl, 0x20
je 0x507e4e
and ebx, 0xffffffdf
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.00575ae8
test bl, 0x10
mov dword [ebp - 4], 0xc
je 0x507e68
and ebx, 0xffffffef
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
call fcn.00575ae8
test esi, esi
jne 0x507bab
lea ecx, [ebp - 0x74]
call fcn.005760db
push esi
push 0x3022
push str.error.adi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x16
call fcn.00576150
test eax, eax
je 0x507ed4
mov edx, dword [ebp - 0x74]
push 2
push esi
lea ecx, [ebp - 0x74]
call dword [edx + 0x28]
lea eax, [ebp + 8]
push 0x600f14
lea ecx, [ebp - 0x48]
push eax
push ecx
call fcn.00575d7d
mov eax, dword [eax]
lea ecx, [ebp - 0x74]
push eax
mov byte [ebp - 4], 0x17
call fcn.005762c3
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x16
call fcn.00575ae8
lea ecx, [ebp - 0x74]
call fcn.00576480
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xc
call fcn.0057610d
mov esi, dword [ebp - 0x18]
jmp 0x507d99
cmp ecx, 2
jne 0x507f28
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 8]
cmp byte [eax], 0
je 0x507f04
push eax
lea ecx, [ebp - 0xc4]
call fcn.0057a1da
mov edx, dword [esi + 8]
push 0xfffffc00
push edx
lea ecx, [ebp - 0x108]
call fcn.0057a1f7
test eax, eax
je 0x50803b
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 8]
jmp 0x507ef8
mov ebx, 0x19
mov edi, 0x1a
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50803b
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.00508ff0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0057a1da
inc dword [ebp - 0x2c]
lea ecx, [ebp - 0x14c]
lea edx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.0050b9d0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x18
call fcn.00575c21
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.00575ae8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50803b
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x248]
push ecx
push edx
push eax
call fcn.0050abf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x507fd1
lea eax, [ebp + 8]
push 0x600f14
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.00575d7d
or dword [ebp - 0x14], 0x40
mov byte [ebp - 4], bl
jmp 0x507fea
push 0x618f40
lea ecx, [ebp - 0x44]
call fcn.00575b56
mov ecx, dword [ebp - 0x14]
or cl, 0x80
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00575f00
mov al, byte [ebp - 0x14]
mov dword [ebp - 4], ebx
test al, 0x80
je 0x50800d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
and al, 0x7f
mov dword [ebp - 0x14], eax
call fcn.00575ae8
mov al, byte [ebp - 0x14]
mov dword [ebp - 4], 0xc
test al, 0x40
je 0x50802b
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
and al, 0xbf
mov dword [ebp - 0x14], eax
call fcn.00575ae8
test esi, esi
je 0x507f62
mov eax, dword [ebp + 8]
jmp 0x507f32
lea ecx, [ebp - 0x14c]
call fcn.00579e91
lea ecx, [ebp - 0x108]
call fcn.00579e91
lea ecx, [ebp - 0xc4]
call fcn.00579e91
lea ecx, [ebp - 0x60]
call fcn.00576480
mov ecx, dword [ebp - 0x18]
call fcn.00506720
lea ecx, [ebp - 0x1a8]
call fcn.00506720
mov edx, dword [ebp - 0x18]
push str..bak
lea eax, [ebp - 0x34]
lea esi, [edx + 0x10]
push esi
push eax
call fcn.00575d7d
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x34]
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
push edx
push eax
call ebx
mov esi, dword [esi]
mov eax, dword [ebp - 0x24]
push esi
push eax
call ebx
lea ecx, [ebp - 0x34]
call fcn.00575ae8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.00575ae8
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xa
call fcn.0051da80
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 9
call fcn.0051da80
mov dword [ebp - 4], 7
call fcn.00577049
push str.BadAdif.txt
lea ecx, [ebp + 0xc]
push 0x681408
push ecx
call fcn.00575d7d
mov edx, dword [0x5d6d00]
mov eax, dword [eax]
push 1
push edx
push 2
push eax
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0x1c
call fcn.00568391
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x1e
call fcn.00575ae8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.0056900a
lea ecx, [ebp - 0x2a0]
call fcn.00568a1d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x508161
push 0x30
push 0
push str.Bad_line_s__detected_in_this_ADIF_file__n_nSee_BadAdif.txt_file_in_MixW_directory_for_the_list_of_bad_lines._n_nClick_OK_to_continue.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 7
call fcn.00568448
lea ecx, [ebp - 0x298]
call fcn.00568f91
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.00579e09
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 5
call fcn.00579e09
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 4
call fcn.00579e09
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00575ae8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00575ae8
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 1
call fcn.00506500
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0057610d
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00575ae8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8