Function at 0x47d520
Capabilities:
Get common file path
Get graphical window text
Read .ini file

Disassembly:
sub esp, 0x8d8
push ebx
push ebp
mov ebp, dword [esp + 0x8f0]
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x8f0]
cmp ebp, ebx
mov dword [esp + 0x10], 0xffffffff
jne 0x47d56b
cmp edi, ebx
je 0x47d561
mov eax, dword [0x5b55b0]
mov dword [esp + 0x2c], eax
jmp 0x47d56b
mov ecx, dword [0x5b55a4]
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x2c]
push edx
push 0x4652f0
push 1
call fcn.0047da80
add esp, 4
push eax
mov eax, dword [0x5b5574]
push 0x559
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x47d5a2
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8d8
ret
push esi
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x2d0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x5b9260
lea edx, [esp + 0x4dc]
push 0x104
lea eax, [esp + 0x2d8]
push edx
push eax
push str.SavePath
push str.MultiExtract
call esi
push 0x5b9260
lea ecx, [esp + 0x28]
push 5
push ecx
push 0x598468
push str.SaveExtension
push str.MultiExtract
call esi
lea edx, [esp + 0x24]
push edx
call fcn.004d78fa
add esp, 4
lea eax, [esp + 0x48]
push 0x5b9260
push 0x40
push eax
push str._page_
push str.Suffix
push str.MultiExtract
call esi
lea ecx, [esp + 0x48]
push ecx
call fcn.004d6713
add esp, 4
test eax, eax
jne 0x47d65f
lea edx, [esp + 0x48]
push str._page_
push edx
call fcn.004d631b
add esp, 8
lea eax, [esp + 0x4d8]
push eax
call fcn.004c7a80
add esp, 4
cmp ebp, ebx
je 0x47d6bc
mov eax, dword [0x5b5510]
cmp eax, ebx
je 0x47d696
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x5b5510]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5b5510], ebx
push 1
push ebx
call fcn.0047a580
mov eax, dword [0x5b554c]
add esp, 8
lea edx, [esp + 0x6e0]
push 0x104
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x47d6eb
mov ecx, dword [esp + 0x8ec]
lea edx, [esp + 0xc8]
push ecx
push edx
call fcn.004d631b
lea eax, [esp + 0x2d8]
push 4
lea ecx, [esp + 0xd4]
push eax
push ecx
call fcn.004c93e0
add esp, 0x14
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ebx
cmp ecx, 1
jne 0x47d70f
mov edx, dword [esp + 0x38]
lea eax, [edx - 1]
xor edx, edx
test eax, eax
setl dl
dec edx
and edx, eax
mov dword [esp + 0x10], edx
mov ebx, edx
test edi, edi
je 0x47d7bc
test ebp, ebp
jne 0x47d7bc
mov eax, dword [0x5b55b0]
xor esi, esi
cmp ecx, 1
mov ebp, eax
jne 0x47d737
mov ebp, dword [esp + 0x3c]
cmp eax, ebp
jge 0x47d737
mov ebp, eax
cmp ebx, ebp
mov edi, ebx
jge 0x47d7af
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov eax, dword [0x5b5644]
test eax, eax
je 0x47d75d
mov eax, dword [ebx + eax + 4]
push 0
push eax
call fcn.004281e0
add esp, 8
mov esi, eax
test esi, esi
je 0x47d79c
lea ecx, [edi + 1]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x2d8]
push eax
lea edx, [esp + 0x4e4]
push ecx
push edx
push esi
mov dword [esp + 0x2c], edi
call fcn.0047d420
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
inc edi
add ebx, 0x24
cmp edi, ebp
jl 0x47d743
cmp dword [esp + 0x14], 0xffffffff
jne 0x47da55
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x47da55
mov eax, dword [esp + 0x8f0]
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
xor esi, esi
test eax, eax
mov eax, dword [0x5b5510]
mov dword [esp + 0x20], esi
jle 0x47da18
mov ecx, dword [esp + 0x8f8]
test ecx, ecx
je 0x47d851
mov eax, dword [esp + 0x8fc]
mov edx, dword [esp + 0x8ec]
push 0x104
lea ecx, [esp + 0xcc]
push eax
push ecx
push esi
push edx
call fcn.004c9ab0
lea eax, [esp + 0x2e4]
push 4
lea ecx, [esp + 0xe0]
push eax
push ecx
call fcn.004c93e0
lea edx, [esp + 0x3c]
lea eax, [esp + 0xe8]
push edx
push eax
call fcn.004ccca0
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0xf0]
push ecx
push edx
call fcn.004a9740
mov edi, eax
mov eax, dword [0x5b5510]
add esp, 0x30
jmp 0x47d861
mov ecx, dword [0x59f718]
mov edi, dword [0x5b55a4]
mov dword [esp + 0x1c], ecx
cmp edi, 1
jle 0x47da04
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], edi
cmp ecx, 1
jne 0x47d887
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], edi
cmp edi, ecx
jl 0x47d887
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ecx, edx
jge 0x47d9ce
test eax, eax
je 0x47d8b8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x5b5510]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5b5510], 0
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x5b6fa8
push ebx
lea edx, [esp + 0xd8]
push ecx
push edx
call fcn.004a9410
add esp, 0x18
mov dword [0x5b5510], eax
test eax, eax
je 0x47d9bd
lea esi, [ebx + 1]
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x2dc]
lea edx, [esp + 0x4e4]
push ecx
push edx
push eax
call fcn.0047d420
mov eax, dword [esp + 0x910]
add esp, 0x18
test eax, eax
jne 0x47d97a
mov eax, dword [0x5b5510]
push 0
push 0
push 0x5b6fa8
push 0x5ba158
push 0x5ba14c
push eax
call fcn.004c5070
push 0
push 4
push 1
push 1
push 1
push 1
call fcn.004788e0
push edi
push esi
push str.Page__d__d
push 0x5b6fc0
mov dword [esp + 0x54], ebx
call fcn.004d5ee1
mov ecx, dword [0x5b5540]
add esp, 0x40
push 0x5b6fc0
push ecx
call ebp
mov edx, dword [0x5b5540]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x47d9b8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x8f0]
push edi
push esi
inc ecx
push eax
push ecx
push str.File:__d__d__Page__d__d
push 0x5b6fc0
call fcn.004d5ee1
mov edx, dword [0x5b554c]
add esp, 0x18
push 0x5b6fc0
push edx
call ebp
mov eax, dword [0x5b554c]
push eax
call fcn.004cb8e0
add esp, 4
mov eax, dword [0x5b5510]
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, ecx
jl 0x47d897
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x8f8]
test ecx, ecx
jne 0x47da00
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x47d9e9
mov dword [0x5b55a8], eax
jmp 0x47d9f1
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x20
call fcn.004c25a0
mov eax, dword [0x5b5510]
add esp, 4
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x8f0]
inc esi
cmp esi, ecx
mov dword [esp + 0x20], esi
jl 0x47d7dc
mov ecx, dword [esp + 0x8f8]
test ecx, ecx
je 0x47da55
test eax, eax
je 0x47da45
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x5b5510]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5b5510], 0
mov eax, dword [0x5b554c]
lea edx, [esp + 0x6e0]
push edx
push eax
call ebp
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8d8
ret