Function at 0x44fca0
Capabilities:
Get graphical window text
Read .ini file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
mov eax, 0x16b8
call fcn.004d6340
mov eax, dword [esp + 0x16c0]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
xor esi, esi
push esi
push esi
push 0x18b
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call ebx
cmp eax, esi
mov dword [esp + 0x14], eax
jg 0x44fce0
pop esi
xor eax, eax
pop ebx
add esp, 0x16b8
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebp
push edi
push 0x5b9260
lea ecx, [esp + 0x894]
push 0x104
push ecx
push str.image
push str.RenamePattern0
push str.Batch
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x5b9260
push 1
push str.RenameIndex
push str.Batch
call edi
push 0x5b9260
push 1
push str.RenameIncrement
push str.Batch
mov dword [esp + 0x48], eax
call edi
push 0x5b9260
push 1
push str.RenamingCopy
push str.Batch
mov dword [esp + 0x58], eax
call edi
push 0x5b9260
push 0
mov ebp, eax
push str.RenameOverwrite
push str.Batch
mov dword [esp + 0x4c], ebp
call edi
cmp ebp, 3
mov dword [esp + 0x44], eax
jne 0x44fd81
cmp eax, 2
jne 0x44fd81
mov dword [esp + 0x44], 0
push 0x5b9260
lea edx, [esp + 0x10b4]
push 0x104
push edx
push 0x5aae60
push str.OutputPath
push str.Batch
call esi
lea eax, [esp + 0x10b0]
lea ecx, [esp + 0x12b8]
push eax
push ecx
call fcn.004d631b
lea edx, [esp + 0x10b8]
push 0x24
push edx
mov dword [esp + 0x28], 0
call fcn.004d75ed
add esp, 0x10
test eax, eax
je 0x44fddf
mov dword [esp + 0x18], 1
cmp ebp, 1
je 0x44fde9
cmp ebp, 2
jne 0x44fe0c
mov eax, dword [esp + 0x16d4]
test eax, eax
jne 0x44fe0c
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x44fe0c
lea eax, [esp + 0x12b8]
push eax
call fcn.004c7a80
add esp, 4
lea ecx, [esp + 0x12b8]
push ecx
call fcn.004c9990
mov edx, dword [esp + 0x16d0]
mov eax, dword [0x5b5574]
add esp, 4
push 0
push 0x44c370
push edx
push 0x3f2
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0x7f00
push 0
mov dword [0x5b43a4], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [0x5b43a4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3e7
push 0x194
push 0x624
push ecx
call edi
push eax
call ebx
lea edx, [esp + 0x890]
lea eax, [esp + 0x278]
push edx
push str.Pattern:__s
push eax
call fcn.004d5ee1
mov edx, dword [0x5b43a4]
add esp, 0xc
lea ecx, [esp + 0x278]
push ecx
push 0xffffffffffffffff
push 0x181
push 0x624
push edx
call edi
push eax
call ebx
mov eax, dword [0x5b43a4]
push 0x5aae60
push 0xffffffffffffffff
push 0x181
push 0x624
push eax
call edi
push eax
call ebx
lea ecx, [esp + 0x890]
xor ebx, ebx
push 0x59bd74
push ecx
mov dword [esp + 0x48], ebx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x44ff6d
lea edx, [esp + 0x890]
push 0x59bd6c
push edx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x44ff6d
lea eax, [esp + 0x890]
push 0x59bd64
push eax
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x44ff6d
lea ecx, [esp + 0x890]
push 0x59bd5c
push ecx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x44ff6d
lea edx, [esp + 0x890]
push 0x59bd54
push edx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x44ff6d
lea eax, [esp + 0x890]
push 0x599cd0
push eax
call fcn.004d6acd
add esp, 8
test eax, eax
je 0x44ff75
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebx
jle 0x4506fb
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [0x5b5574]
lea ecx, [esp + 0x70]
push 0x80
push ecx
push 0x4e4
push edx
call ebp
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 1]
push ecx
lea edx, [esp + 0x74]
mov dword [esp + 0x50], eax
push eax
push edx
lea eax, [esp + 0x284]
push str._s__d____d
push eax
call fcn.004d5ee1
mov eax, dword [esp + 0x16e8]
add esp, 0x14
test eax, eax
je 0x45002c
mov edx, dword [esp + 0x16cc]
lea ecx, [esp + 0x70]
push 0x104
push ecx
push 0xcaa
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x278]
push 0x59bd4c
push eax
call fcn.004d62f1
lea ecx, [esp + 0x78]
lea edx, [esp + 0x280]
push ecx
push edx
call fcn.004d62f1
add esp, 0x10
mov ecx, dword [0x5b43a4]
lea eax, [esp + 0x278]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edx, [esp + 0x890]
push edx
call fcn.004d6713
add esp, 4
test eax, eax
je 0x4506fb
mov eax, dword [0x5b43a4]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
lea ecx, [esp + 0x60]
push eax
push ecx
call esi
test eax, eax
je 0x4500a4
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x5b43a4]
push 1
push 0
push 0
lea edx, [esp + 0x60]
push ecx
push edx
call esi
test eax, eax
jne 0x450076
mov eax, dword [0x5ba374]
test eax, eax
je 0x4506fb
cmp eax, 0x64
jl 0x4500c3
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x450059
mov ecx, dword [esp + 0x16d0]
lea eax, [esp + 0x688]
push eax
push ebx
push 0x189
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x28]
lea eax, [esp + 0x688]
xor ebx, ebx
push edx
push eax
xor esi, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
call fcn.004ccca0
lea ecx, [esp + 0xeb0]
push 8
lea edx, [esp + 0x694]
push ecx
push edx
call fcn.004c93e0
mov eax, dword [esp + 0x54]
add esp, 0x14
cmp eax, ebx
jne 0x450131
cmp dword [esp + 0x18], ebx
je 0x4501b6
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push ebx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
push ebx
lea eax, [esp + 0x6c0]
push ebx
push eax
call fcn.004a71a0
lea ecx, [esp + 0x8d0]
push 0x599cd0
push ecx
mov ebx, eax
call fcn.004d6acd
add esp, 0x48
test eax, eax
je 0x45018c
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x688]
push edx
push eax
call fcn.004a9740
add esp, 8
mov esi, eax
lea ecx, [esp + 0x34]
push 0
push ecx
push 0
push 0
push 0
push ebx
call fcn.004c5070
add esp, 0x18
test ebx, ebx
je 0x4501b4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push ebx
push esi
push 0xffffffffffffffff
push 0x40590000
push ebx
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ebx
mov ebx, dword [esp + 0x60]
push ebx
push 0xffffffffffffffff
lea eax, [esp + 0x8c0]
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x6c0]
push ecx
push edx
lea eax, [esp + 0xad8]
push 0x104
push eax
call fcn.004b7220
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x60]
add esp, 0x48
add ebx, ecx
test eax, eax
mov dword [esp + 0x38], ebx
je 0x4502ad
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push 0
push esi
push 0xffffffffffffffff
push 0x40590000
push 0
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
push 0
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0x10e0]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x6c0]
push eax
push ecx
lea edx, [esp + 0x12f8]
push 0x104
push edx
call fcn.004b7220
lea eax, [esp + 0x1300]
push eax
call fcn.004c9990
mov esi, dword [esp + 0x88]
add esp, 0x4c
cmp esi, 1
je 0x450290
cmp esi, 2
jne 0x4502b1
mov eax, dword [esp + 0x16d4]
test eax, eax
jne 0x4502b1
lea ecx, [esp + 0x12b8]
push ecx
call fcn.004c7a80
add esp, 4
jmp 0x4502b1
mov esi, dword [esp + 0x3c]
lea edx, [esp + 0xa98]
push edx
call fcn.0044dbb0
lea eax, [esp + 0xa9c]
push 0
push eax
call fcn.004c9a10
lea ecx, [esp + 0x7c]
push 8
lea edx, [esp + 0xaa8]
push ecx
push edx
call fcn.004c93e0
lea eax, [esp + 0x88]
push eax
call fcn.004d6713
add esp, 0x1c
test eax, eax
jne 0x45030d
lea ecx, [esp + 0xea8]
lea edx, [esp + 0xa98]
push ecx
push edx
call fcn.004d62f1
add esp, 8
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x70]
push 0x80
push eax
push 0x4e4
push ecx
call ebp
lea edx, [esp + 0x688]
lea eax, [esp + 0x70]
push edx
push eax
lea ecx, [esp + 0x280]
push 0x59bb30
push ecx
call fcn.004d5ee1
mov eax, dword [0x5b43a4]
add esp, 0x10
lea edx, [esp + 0x278]
push 0
push edx
push 0x624
push eax
call edi
push eax
call fcn.0044db70
add esp, 0xc
cmp esi, 3
jne 0x4503b1
lea ecx, [esp + 0x278]
push esi
lea edx, [esp + 0x68c]
push ecx
push edx
call fcn.004c93e0
lea eax, [esp + 0xaa4]
lea ecx, [esp + 0x284]
push eax
push ecx
call fcn.004d62f1
lea edx, [esp + 0x28c]
lea eax, [esp + 0xaac]
push edx
push eax
call fcn.004d631b
add esp, 0x1c
jmp 0x4503f5
cmp esi, 1
je 0x4503bb
cmp esi, 2
jne 0x4503f5
lea ecx, [esp + 0xa98]
lea edx, [esp + 0x12b8]
push ecx
push edx
lea eax, [esp + 0x280]
push str._s_s
push eax
call fcn.004d5ee1
lea ecx, [esp + 0x288]
lea edx, [esp + 0xaa8]
push ecx
push edx
call fcn.004d631b
add esp, 0x18
lea eax, [esp + 0xa98]
push eax
call fcn.004381b0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x4504d0
mov ebx, dword [esp + 0x44]
cmp ebx, 2
jne 0x4504ae
lea ecx, [esp + 0xa98]
push ecx
push 1
call fcn.004cbe50
add esp, 8
cmp eax, 0xffffffff
jne 0x45049a
mov edx, dword [esp + 0x10]
mov eax, dword [0x5b5574]
inc edx
push 0x40
mov dword [esp + 0x14], edx
lea edx, [esp + 0x74]
push edx
push 0x51b
push eax
call ebp
lea ecx, [esp + 0xa98]
lea edx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x280]
push 0x59bb30
push eax
call fcn.004d5ee1
mov edx, dword [0x5b43a4]
add esp, 0x10
lea ecx, [esp + 0x278]
push 1
push ecx
push 0x624
push edx
call edi
push eax
call fcn.0044db70
add esp, 0xc
jmp 0x4506eb
lea eax, [esp + 0xa98]
push eax
call fcn.004381b0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x4504d0
test ebx, ebx
jne 0x4504d0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x70]
inc edx
push 0x40
push ecx
mov dword [esp + 0x1c], edx
push 0x51b
jmp 0x4505e4
mov eax, dword [esp + 0x16d4]
test eax, eax
jne 0x450635
cmp esi, 3
jne 0x450580
lea edx, [esp + 0x688]
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0xa98]
lea ecx, [esp + 0x688]
push eax
push ecx
call fcn.004d7a37
add esp, 8
test eax, eax
je 0x450635
mov edx, dword [esp + 0x10]
mov eax, dword [0x5b5574]
inc edx
push 0x80
mov dword [esp + 0x14], edx
lea edx, [esp + 0x74]
push edx
push 0x4d8
push eax
call ebp
lea ecx, [esp + 0xa98]
lea edx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x280]
push 0x59bb30
push eax
call fcn.004d5ee1
mov edx, dword [0x5b43a4]
add esp, 0x10
lea ecx, [esp + 0x278]
push 1
push ecx
push 0x624
push edx
call edi
push eax
call fcn.0044db70
add esp, 0xc
jmp 0x4506eb
cmp esi, 1
je 0x45058e
cmp esi, 2
jne 0x450635
xor eax, eax
cmp esi, 2
jne 0x45059a
mov eax, 1
lea ecx, [esp + 0x50]
lea edx, [esp + 0xa98]
push ecx
push 1
push 0
push 0
push 0
push eax
lea eax, [esp + 0x6a0]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.004cbf10
add esp, 0x20
test eax, eax
jne 0x450635
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
inc edx
push 0x80
push ecx
mov dword [esp + 0x18], edx
push 0x4d8
mov edx, dword [0x5b5574]
push edx
call ebp
lea eax, [esp + 0xa98]
lea ecx, [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x280]
push 0x59bb30
push edx
call fcn.004d5ee1
mov ecx, dword [0x5b43a4]
add esp, 0x10
lea eax, [esp + 0x278]
push 1
push eax
push 0x624
push ecx
call edi
push eax
call fcn.0044db70
add esp, 0xc
jmp 0x4506eb
lea edx, [esp + 0xa98]
lea eax, [esp + 0x278]
push edx
push str...._Ok____s
push eax
call fcn.004d5ee1
mov eax, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
je 0x45069d
mov ebx, dword [esp + 0x14]
mov edx, dword [0x5b5574]
lea ecx, [esp + 0x70]
push 0x80
push ecx
inc ebx
push 0x502
push edx
mov dword [esp + 0x24], ebx
call ebp
lea eax, [esp + 0xa98]
lea ecx, [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x280]
push str...._Ok____s:__s
push edx
call fcn.004d5ee1
add esp, 0x10
mov ecx, dword [0x5b43a4]
lea eax, [esp + 0x278]
push 1
push eax
push 0x624
push ecx
call edi
push eax
call fcn.0044db70
mov edx, dword [0x5b43a4]
push edx
call fcn.004cb8e0
mov eax, dword [0x5b43a4]
add esp, 0x10
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004cb8e0
mov ecx, dword [0x5b5528]
push ecx
call fcn.004cb8e0
add esp, 8
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jl 0x44ff87
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [esp + 0x16d4]
test esi, esi
jne 0x45076b
push 0x5b9260
push esi
push str.SaveRenameIndex
push str.Batch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x45076b
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x278]
push edx
push 0x5985ac
push eax
call fcn.004d5ee1
add esp, 0xc
lea ecx, [esp + 0x278]
push 0x5b9260
push ecx
push str.RenameIndex
push str.Batch
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [0x5b43a4]
push 0x5aae60
push 0xffffffffffffffff
push 0x181
push 0x624
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x5b5574]
lea eax, [esp + 0xea8]
push 0x80
push eax
push 0x52a
push ecx
call ebp
mov eax, dword [0x5b5574]
lea edx, [esp + 0x688]
push 0x104
push edx
push 0x4df
push eax
call ebp
mov edx, dword [0x5b5574]
lea ecx, [esp + 0x70]
push 0x104
push ecx
push 0x4e0
push edx
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
push ecx
lea eax, [esp + 0x690]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xeb4]
push eax
push ecx
push edx
lea eax, [esp + 0x290]
push str._d__s____s:__d___s:__d
push eax
call fcn.004d5ee1
mov edx, dword [0x5b43a4]
add esp, 0x20
lea ecx, [esp + 0x278]
push 0
push ecx
push 0x624
push edx
call edi
push eax
call fcn.0044db70
mov eax, dword [0x5b43a4]
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x5b5574]
lea ecx, [esp + 0x278]
push 0x104
push ecx
push 0x4e7
push edx
call ebp
test esi, esi
je 0x4508a5
mov ecx, dword [esp + 0x16cc]
lea eax, [esp + 0x70]
push 0x104
push eax
push 0xcaa
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x278]
push 0x59bd4c
push edx
call fcn.004d62f1
lea eax, [esp + 0x78]
lea ecx, [esp + 0x280]
push eax
push ecx
call fcn.004d62f1
add esp, 0x10
mov eax, dword [0x5b43a4]
lea edx, [esp + 0x278]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x5b43a4]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
test esi, esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
jne 0x4508e0
mov edx, dword [0x5b43a4]
push 1
push 2
push edx
call edi
push eax
call esi
mov eax, dword [0x5b43a4]
push 0
push 1
push eax
call edi
push eax
call esi
mov ecx, dword [0x5b43a4]
push 0
push 0xcd2
push ecx
call edi
push eax
call esi
mov edx, dword [0x5b43a4]
push 1
push 0xbd0
push edx
call edi
push eax
call esi
mov ebx, dword [esp + 0x16d4]
test ebx, ebx
jne 0x450931
mov eax, dword [0x5b43a4]
push 2
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [0x5b43a4]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x28
push ecx
call esi
mov edx, dword [0x5b43a4]
push 0
push 0
push 0x28
push edx
call esi
mov eax, dword [0x5b43a4]
push 0
push 0
push 0x28
push eax
call esi
test ebx, ebx
pop edi
pop ebp
jne 0x450978
mov ecx, dword [0x5b43a4]
push 0
push 0
push 0x28
push ecx
call esi
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov eax, 1
pop ebx
add esp, 0x16b8
ret