Function at 0x10030790
Capabilities:
Delete file
Get common file path
Get graphical window text
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x190c
call fcn.1003a8f0
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x18f0], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1900], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [edx + 4]
mov dword [ebp - 0x1904], eax
mov eax, dword [ebp + 0x20]
push 0x7f02
mov dword [ebp - 0x18fc], eax
mov eax, dword [ebp + 0x24]
push 0
mov dword [ebp - 0x18f4], edx
mov dword [ebp - 0x18ec], ecx
mov dword [ebp - 0x18e4], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18e8], 0
mov dword [ebp - 0x18f8], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
test dword [edi + 0x5c], 0x20000
jne 0x10030884
push 0
push 0
push 0x4a
lea eax, [edi + 0x104]
push 0xffffffffffffffff
push eax
call dword [sym.imp.msjet40.dll_Ordinal_176]
lea eax, [edi + 0x104]
push eax
call dword [sym.imp.msjet40.dll_Ordinal_154]
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10030f31
or dword [edi + 0x5c], 0x20000
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x18f8], 2
test eax, eax
je 0x10030884
push eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [edi + 0x104]
push eax
call dword [sym.imp.msjet40.dll_Ordinal_176]
mov dword [ebp - 0x18e8], eax
cmp dword [edi + 0x24], 0
jne 0x10030891
mov ecx, 0x10001f58
jmp 0x100308e0
mov ecx, dword [ebp - 0x1900]
test ecx, ecx
jne 0x100308d6
test byte [ebp + 0x2c], 1
jne 0x10030f3f
push 0x12c
lea edx, [ebp - 0x268]
mov ecx, 0xa02b
call fcn.10032350
push 0x10
push 0
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18ec]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10030f3f
mov eax, dword [ebp - 0x1904]
test eax, eax
jne 0x100308e5
mov eax, 0x100021a8
cmp dword [edi + 0x54], 0xffffffff
lea edx, [edi + 0x54]
jne 0x10030912
push eax
push ecx
push edx
push dword [edi + 0x104]
call dword [sym.imp.msjet40.dll_Ordinal_103]
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10030f31
or dword [ebp - 0x18f8], 4
push 0x12c
lea eax, [ebp - 0xfd0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0xfd0], 0
jne 0x10030971
push 0x10003c60
push esi
push 0x10003c78
push 0x12b
lea eax, [ebp - 0xfd0]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
lea eax, [ebp - 0xfd0]
add esp, 0x18
mov dword [ebp - 0x18e4], eax
jmp 0x10030973
mov eax, esi
mov esi, dword [ebp + 8]
cmp esi, 3
jne 0x1003097f
mov ebx, eax
jmp 0x10030984
cmp esi, 2
jne 0x100309fe
push 0x12c
lea eax, [ebp - 0x1688]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x920]
cmp word [ebp - 0x1688], 0
jne 0x100309d7
push 0x10003c60
push ebx
push 0x10003c78
push 0x12b
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x100309fe
lea ecx, [ebp - 0x920]
mov edx, 0x12c
sub ebx, ecx
movzx ecx, word [ebx + eax]
test cx, cx
je 0x100309f9
mov word [eax], cx
dec edx
add eax, 2
cmp edx, 1
ja 0x100309e4
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18e4]
test eax, eax
je 0x10030a19
push ebx
push dword [ebp + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x100021ac
push ebx
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x10030aae
cmp dword [ebp - 0x18f0], eax
je 0x10030aae
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030a40
sub ecx, edx
mov edx, dword [ebp - 0x18f0]
sar ecx, 1
lea eax, [edx + 2]
mov dword [ebp - 0xc], eax
jmp 0x10030a60
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10030a60
sub edx, dword [ebp - 0xc]
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x12c
jae 0x10030aae
push ebx
push dword [ebp - 0x18f0]
lea eax, [ebp - 0x18e0]
push 0x100021b4
push 0x12c
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
lea eax, [ebp - 0x18e0]
add esp, 0x18
mov dword [ebp - 0x18e4], eax
cmp esi, 2
je 0x10030abc
cmp esi, 3
jne 0x10030b7c
lea eax, [ebp - 0x920]
push 0x100021ac
push eax
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x10030b4d
mov ebx, dword [ebp - 0x18fc]
test ebx, ebx
je 0x10030b4d
lea edx, [ebp - 0x920]
lea ecx, [edx + 2]
jmp 0x10030af0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10030af0
sub edx, ecx
mov ecx, ebx
sar edx, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030b04
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x104
jae 0x10030b4d
lea eax, [ebp - 0x920]
push eax
push dword [ebp - 0x18fc]
lea eax, [ebp - 0x470]
push 0x100021b4
push 0x104
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x10030b7c
lea eax, [ebp - 0x470]
mov ecx, 0x104
lea ebx, [ebp - 0x920]
mov edx, eax
sub ebx, edx
movzx edx, word [ebx + eax]
test dx, dx
je 0x10030b77
mov word [eax], dx
dec ecx
add eax, 2
cmp ecx, 1
ja 0x10030b62
xor ecx, ecx
mov word [eax], cx
cmp esi, 2
je 0x10030b86
cmp esi, 1
jne 0x10030bb0
mov eax, dword [ebp - 0x18f4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x10030bb0
push eax
push 0x10003c84
lea eax, [ebp - 0xb78]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
jmp 0x10030bcf
cmp esi, 3
jne 0x10030bc6
mov ebx, dword [ebp + 0x2c]
or ebx, 4
xor eax, eax
mov word [ebp - 0xb78], ax
jmp 0x10030be1
xor eax, eax
mov word [ebp - 0xb78], ax
cmp esi, 1
je 0x10030d86
jle 0x10030e46
mov ebx, dword [ebp + 0x2c]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18f0], 0
test eax, eax
je 0x10030c19
push eax
push 0x10003cc0
lea eax, [ebp - 0x1228]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
lea eax, [ebp - 0x1228]
add esp, 0x10
mov dword [ebp - 0x18f0], eax
lea ecx, [ebp - 0x470]
call fcn.10031890
test eax, eax
je 0x10030d4a
lea eax, [ebp - 0xd78]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x10003c70
lea eax, [ebp - 0xd78]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x18f4]
lea eax, [ebp - 0xb78]
push esi
push ecx
mov ecx, dword [ebp - 0x18ec]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x18f0]
push dword [ebp - 0x18e4]
push dword [edi + 0x54]
push ebx
call fcn.10030fc0
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10030cc2
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0x100
lea eax, [ebp - 0x670]
push eax
push 0x100
lea eax, [ebp - 0xd78]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x670]
push 0x10003c68
push eax
lea eax, [ebp - 0xd78]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10003cd0
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18e8]
jmp 0x10030e4f
mov edx, dword [ebp - 0x18f4]
lea eax, [ebp - 0xb78]
push esi
push ecx
mov ecx, dword [ebp - 0x18ec]
push eax
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x18f0]
push dword [ebp - 0x18e4]
push dword [edi + 0x54]
push ebx
call fcn.10030fc0
mov dword [ebp - 0x18e8], eax
jmp 0x10030e4f
mov ebx, dword [ebp - 0x18e4]
push 0
push 0
push 3
push 0
push 3
push Ordinal_3
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10030db5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18f4]
movzx ecx, word [eax + 0x16]
mov eax, ecx
and eax, 8
shl eax, 4
test cl, 0x10
je 0x10030dd1
or eax, 0x200
test cl, 4
je 0x10030dd9
or eax, 0x20
test cl, 0x20
je 0x10030de1
or eax, 1
push eax
test al, al
jns 0x10030e0b
push 0x10003c9c
push 0x10003ca4
push 0x10003cb0
lea eax, [ebp - 0xb78]
push eax
push ebx
call dword [sym.imp.msjet40.dll_Ordinal_185]
mov dword [ebp - 0x18e8], eax
jmp 0x10030e4c
lea eax, [ebp - 0x1908]
push eax
lea eax, [ebp - 0xb78]
push eax
push ebx
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_112]
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10030e4c
push 0
push dword [ebp - 0x1908]
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_107]
mov dword [ebp - 0x18e8], eax
jmp 0x10030e4c
mov eax, dword [ebp - 0x18e8]
mov ebx, dword [ebp + 0x2c]
test bl, 1
jne 0x10030f3f
test eax, eax
js 0x10030f31
sub esi, 1
je 0x10030ebf
sub esi, 1
je 0x10030e7a
sub esi, 1
jne 0x10030efb
mov ecx, 0xade1
jmp 0x10030ec4
push 0x12c
lea edx, [ebp - 0x6c8]
mov ecx, 0xade2
call fcn.10032350
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x18e4]
lea eax, [ebp - 0x6c8]
push eax
push 0x22f
lea eax, [ebp - 0x1430]
push 0x230
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x10030efb
mov ecx, 0xaddf
push 0x12c
lea edx, [ebp - 0x6c8]
call fcn.10032350
push dword [ebp - 0x18e4]
lea eax, [ebp - 0x6c8]
push eax
push 0x22f
lea eax, [ebp - 0x1430]
push 0x230
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x14
mov ebx, dword [ebp - 0x18ec]
test ebx, ebx
je 0x10030f3f
push 0x103
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1430]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10030f3f
mov ecx, dword [ebp - 0x18ec]
mov edx, edi
push eax
call 0x10055db6
mov ebx, dword [ebp - 0x18f8]
test bl, 4
je 0x10030f5c
push 0
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_130]
mov dword [edi + 0x54], 0xffffffff
test bl, 2
je 0x10030f7e
push dword [edi + 0x104]
call dword [sym.imp.msjet40.dll_Ordinal_178]
and dword [edi + 0x5c], 0xfffdffff
mov dword [edi + 0x104], 0
cmp dword [ebp - 0x18e8], 0
jl 0x10030f9c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 0x28