Function at 0x10030ce0
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.1003aec0
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 0x10030dd4
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 0x1003148d
or dword [edi + 0x5c], 0x20000
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x18f8], 2
test eax, eax
je 0x10030dd4
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 0x10030de1
mov ecx, 0x10001f58
jmp 0x10030e30
mov ecx, dword [ebp - 0x1900]
test ecx, ecx
jne 0x10030e26
test byte [ebp + 0x2c], 1
jne 0x1003149b
push 0x12c
lea edx, [ebp - 0x268]
mov ecx, 0xa02b
call fcn.10032910
push 0x10
push 0
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18ec]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1003149b
mov eax, dword [ebp - 0x1904]
test eax, eax
jne 0x10030e35
mov eax, 0x100021a8
cmp dword [edi + 0x54], 0xffffffff
lea edx, [edi + 0x54]
jne 0x10030e62
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 0x1003148d
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 0x10030ec1
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 0x10030ec3
mov eax, esi
mov esi, dword [ebp + 8]
cmp esi, 3
jne 0x10030ecf
mov ebx, eax
jmp 0x10030ed4
cmp esi, 2
jne 0x10030f4e
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 0x10030f27
push 0x10003c60
push ebx
push 0x10003c78
push 0x12b
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x10030f4e
lea ecx, [ebp - 0x920]
mov edx, 0x12c
sub ebx, ecx
movzx ecx, word [ebx + eax]
test cx, cx
je 0x10030f49
mov word [eax], cx
dec edx
add eax, 2
cmp edx, 1
ja 0x10030f34
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18e4]
test eax, eax
je 0x10030f69
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 0x10030ffe
cmp dword [ebp - 0x18f0], eax
je 0x10030ffe
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030f90
sub ecx, edx
mov edx, dword [ebp - 0x18f0]
sar ecx, 1
lea eax, [edx + 2]
mov dword [ebp - 0xc], eax
jmp 0x10030fb0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10030fb0
sub edx, dword [ebp - 0xc]
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x12c
jae 0x10030ffe
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 0x1003100c
cmp esi, 3
jne 0x100310cc
lea eax, [ebp - 0x920]
push 0x100021ac
push eax
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x1003109d
mov ebx, dword [ebp - 0x18fc]
test ebx, ebx
je 0x1003109d
lea edx, [ebp - 0x920]
lea ecx, [edx + 2]
jmp 0x10031040
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10031040
sub edx, ecx
mov ecx, ebx
sar edx, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031054
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x104
jae 0x1003109d
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 0x100310cc
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 0x100310c7
mov word [eax], dx
dec ecx
add eax, 2
cmp ecx, 1
ja 0x100310b2
xor ecx, ecx
mov word [eax], cx
cmp esi, 2
je 0x100310d6
cmp esi, 1
jne 0x10031100
mov eax, dword [ebp - 0x18f4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x10031100
push eax
push 0x10003c84
lea eax, [ebp - 0xb78]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
jmp 0x1003111f
cmp esi, 3
jne 0x10031116
mov ebx, dword [ebp + 0x2c]
or ebx, 4
xor eax, eax
mov word [ebp - 0xb78], ax
jmp 0x1003112b
xor eax, eax
mov word [ebp - 0xb78], ax
cmp esi, 1
je 0x1003130a
mov ebx, dword [ebp + 0x2c]
lea eax, [esi - 2]
cmp eax, 1
ja 0x10031295
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18f0], 0
test eax, eax
je 0x1003116f
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.10031e30
test eax, eax
je 0x100312d1
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.10031510
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10031218
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]
test bl, 1
jne 0x1003149b
test eax, eax
js 0x1003148d
sub esi, 1
je 0x1003141b
sub esi, 1
je 0x100313d6
sub esi, 1
jne 0x10031457
mov ecx, 0xade1
jmp 0x10031420
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.10031510
mov dword [ebp - 0x18e8], eax
jmp 0x1003129b
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 0x10031339
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 0x10031355
or eax, 0x200
test cl, 4
je 0x1003135d
or eax, 0x20
test cl, 0x20
je 0x10031365
or eax, 1
push eax
test al, al
jns 0x10031395
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
mov ebx, dword [ebp + 0x2c]
jmp 0x1003129b
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 0x1003138d
push 0
push dword [ebp - 0x1908]
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_107]
mov ebx, dword [ebp + 0x2c]
mov dword [ebp - 0x18e8], eax
jmp 0x1003129b
push 0x12c
lea edx, [ebp - 0x6c8]
mov ecx, 0xade2
call fcn.10032910
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 0x10031457
mov ecx, 0xaddf
push 0x12c
lea edx, [ebp - 0x6c8]
call fcn.10032910
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 0x1003149b
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 0x1003149b
mov ecx, dword [ebp - 0x18ec]
mov edx, edi
push eax
call fcn.10055d24
mov ebx, dword [ebp - 0x18f8]
test bl, 4
je 0x100314b8
push 0
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_130]
mov dword [edi + 0x54], 0xffffffff
test bl, 2
je 0x100314da
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 0x100314f8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
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.1003a750
mov esp, ebp
pop ebp
ret 0x28