Function at 0x10031c30
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.1003cb10
mov eax, dword [0x100416e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18e8], 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 dword [ebp - 0x1900], eax
xor esi, esi
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 esi
mov dword [ebp - 0x18f4], edx
mov dword [ebp - 0x18ec], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18e4], esi
mov dword [ebp - 0x18f8], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
test dword [edi + 0x5c], 0x20000
jne 0x10031d3f
push 0
push 0
push 0x4a
push 0xffffffffffffffff
lea esi, [edi + 0x104]
push esi
call dword [sym.imp.msjet40.dll_Ordinal_176]
push esi
call dword [sym.imp.msjet40.dll_Ordinal_154]
mov esi, eax
mov dword [ebp - 0x18e4], esi
test esi, esi
jns 0x10031d0b
mov ecx, dword [ebp - 0x18ec]
mov edx, edi
push esi
call fcn.1000c470
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x28
or dword [edi + 0x5c], 0x20000
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x18f8], 2
test eax, eax
je 0x10031d3f
push eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [edi + 0x104]
push eax
call dword [sym.imp.msjet40.dll_Ordinal_176]
mov esi, eax
mov dword [ebp - 0x18e4], esi
cmp dword [edi + 0x24], 0
jne 0x10031d4c
mov ecx, 0x10001f68
jmp 0x10031d9b
mov ecx, dword [ebp - 0x1900]
test ecx, ecx
jne 0x10031d91
test byte [ebp + 0x2c], 1
jne 0x10032405
push 0x12c
lea edx, [ebp - 0x268]
mov ecx, 0xa02b
call fcn.100338a0
push 0x10
push 0
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18ec]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10032405
mov eax, dword [ebp - 0x1904]
test eax, eax
jne 0x10031da0
mov eax, 0x100021b8
cmp dword [edi + 0x54], 0xffffffff
lea edx, [edi + 0x54]
jne 0x10031dd1
push eax
push ecx
push edx
push dword [edi + 0x104]
call dword [sym.imp.msjet40.dll_Ordinal_103]
mov esi, eax
mov dword [ebp - 0x18e4], esi
test esi, esi
jns 0x10031dca
push esi
jmp 0x100323f2
or dword [ebp - 0x18f8], 4
mov esi, dword [ebp - 0x18e8]
lea eax, [ebp - 0xfd0]
push 0x12c
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 0x10031e36
push 0x10003c48
push esi
push 0x10003c60
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 - 0x18e8], eax
jmp 0x10031e38
mov eax, esi
mov esi, dword [ebp + 8]
cmp esi, 3
jne 0x10031e44
mov ebx, eax
jmp 0x10031e4d
cmp esi, 2
jne 0x10031eca
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 0x10031ea0
push 0x10003c48
push ebx
push 0x10003c60
push 0x12b
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x10031eca
lea ecx, [ebp - 0x920]
mov edx, 0x12c
sub ebx, ecx
lea ecx, [ecx]
movzx ecx, word [ebx + eax]
test cx, cx
je 0x10031ec5
mov word [eax], cx
dec edx
add eax, 2
cmp edx, 1
ja 0x10031eb0
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18e8]
test eax, eax
je 0x10031ee5
push ebx
push dword [ebp + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x100021bc
push ebx
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x10031f6e
cmp dword [ebp - 0x18f0], eax
je 0x10031f6e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031f05
sub ecx, edx
mov edx, dword [ebp - 0x18f0]
sar ecx, 1
lea eax, [edx + 2]
mov dword [ebp - 0xc], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10031f20
sub edx, dword [ebp - 0xc]
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x12c
jae 0x10031f6e
push ebx
push dword [ebp - 0x18f0]
lea eax, [ebp - 0x18e0]
push 0x100021c4
push 0x12c
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
lea eax, [ebp - 0x18e0]
add esp, 0x18
mov dword [ebp - 0x18e8], eax
cmp esi, 2
je 0x10031f7c
cmp esi, 3
jne 0x10032041
lea eax, [ebp - 0x920]
push 0x100021bc
push eax
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x1003200d
mov ebx, dword [ebp - 0x18fc]
test ebx, ebx
je 0x1003200d
lea edx, [ebp - 0x920]
lea ecx, [edx + 2]
jmp 0x10031fb0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10031fb0
sub edx, ecx
mov ecx, ebx
sar edx, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031fc4
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x104
jae 0x1003200d
lea eax, [ebp - 0x920]
push eax
push dword [ebp - 0x18fc]
lea eax, [ebp - 0x470]
push 0x100021c4
push 0x104
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x1003203c
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 0x10032037
mov word [eax], dx
dec ecx
add eax, 2
cmp ecx, 1
ja 0x10032022
xor ecx, ecx
mov word [eax], cx
cmp esi, 2
je 0x10032046
cmp esi, 1
jne 0x10032070
mov eax, dword [ebp - 0x18f4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x10032070
push eax
push 0x10003c6c
lea eax, [ebp - 0xb78]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
jmp 0x1003208f
cmp esi, 3
jne 0x10032086
mov ebx, dword [ebp + 0x2c]
or ebx, 4
xor eax, eax
mov word [ebp - 0xb78], ax
jmp 0x100320a1
xor eax, eax
mov word [ebp - 0xb78], ax
cmp esi, 1
je 0x10032246
jle 0x10032306
mov ebx, dword [ebp + 0x2c]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18f0], 0
test eax, eax
je 0x100320d9
push eax
push 0x10003ca8
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.10032d60
test eax, eax
je 0x1003220a
lea eax, [ebp - 0xd78]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x10003c58
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 - 0x18e8]
push dword [edi + 0x54]
push ebx
call fcn.10032470
mov dword [ebp - 0x18e4], eax
test eax, eax
js 0x10032182
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 0x10003c50
push eax
lea eax, [ebp - 0xd78]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10003cb8
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 - 0x18e4]
jmp 0x1003230f
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 - 0x18e8]
push dword [edi + 0x54]
push ebx
call fcn.10032470
mov dword [ebp - 0x18e4], eax
jmp 0x1003230f
mov ebx, dword [ebp - 0x18e8]
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 0x10032275
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 0x10032291
or eax, 0x200
test cl, 4
je 0x10032299
or eax, 0x20
test cl, 0x20
je 0x100322a1
or eax, 1
push eax
test al, al
jns 0x100322cb
push 0x10003c84
push 0x10003c8c
push 0x10003c98
lea eax, [ebp - 0xb78]
push eax
push ebx
call dword [sym.imp.msjet40.dll_Ordinal_185]
mov dword [ebp - 0x18e4], eax
jmp 0x1003230c
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 - 0x18e4], eax
test eax, eax
js 0x1003230c
push 0
push dword [ebp - 0x1908]
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_107]
mov dword [ebp - 0x18e4], eax
jmp 0x1003230c
mov eax, dword [ebp - 0x18e4]
mov ebx, dword [ebp + 0x2c]
test bl, 1
jne 0x100323ff
test eax, eax
js 0x100323f1
sub esi, 1
je 0x1003237f
sub esi, 1
je 0x1003233a
sub esi, 1
jne 0x100323bb
mov ecx, 0xade1
jmp 0x10032384
push 0x12c
lea edx, [ebp - 0x6c8]
mov ecx, 0xade2
call fcn.100338a0
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x18e8]
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 0x100323bb
mov ecx, 0xaddf
push 0x12c
lea edx, [ebp - 0x6c8]
call fcn.100338a0
push dword [ebp - 0x18e8]
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 0x100323ff
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 0x100323ff
push eax
mov ecx, dword [ebp - 0x18ec]
mov edx, edi
call fcn.10057ef4
mov esi, dword [ebp - 0x18e4]
mov ebx, dword [ebp - 0x18f8]
test bl, 4
je 0x10032422
push 0
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_130]
mov dword [edi + 0x54], 0xffffffff
test bl, 2
je 0x10032444
push dword [edi + 0x104]
call dword [sym.imp.msjet40.dll_Ordinal_178]
and dword [edi + 0x5c], 0xfffdffff
mov dword [edi + 0x104], 0
test esi, esi
js 0x10031cf5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x28