Function at 0x47bc50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc44
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0x5b9260
push 1
push str.Increment
push str.BatchScaning
call esi
push 0x5b9260
push 2
push str.Digits
push str.BatchScaning
mov dword [esp + 0x20], eax
call esi
push 0x5b9260
push 0
push str.Multipage
push str.BatchScaning
mov edi, eax
call esi
push 0x5b9260
push 1
push str.SkipExisting
push str.BatchScaning
mov dword [esp + 0x1c], eax
call esi
cmp edi, 0x80
mov dword [esp + 0x14], eax
jle 0x47bcc6
mov edi, 0x80
mov ecx, dword [esp + 0xc58]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x5b9260
lea eax, [esp + 0x234]
push 0x104
push eax
push ecx
push str.SaveName
push str.BatchScaning
call ebx
push 0x5b9260
lea edx, [esp + 0x43c]
push 0x104
push edx
push 0x598468
push str.BatchScanExtension
push str.BatchScaning
call ebx
lea eax, [esp + 0x438]
push eax
call fcn.004d78fa
lea ecx, [esp + 0x234]
push 0x24
push ecx
call fcn.004d75ed
add esp, 0xc
test eax, eax
je 0x47bdbf
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [0x5b5510]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.004c5070
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
push 0x40590000
push 0
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x278]
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push 0x5aae60
lea eax, [esp + 0x80]
push 0x104
push eax
call fcn.004b7220
add esp, 0x60
lea ecx, [esp + 0x28]
lea edx, [esp + 0x230]
push ecx
push edx
call fcn.004d631b
add esp, 8
push ebp
push edi
lea eax, [esp + 0x30]
push str.__._dd
push eax
call fcn.004d5ee1
mov ebx, dword [esp + 0xc6c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x650]
mov ecx, dword [ebx]
push ecx
push edx
push eax
call fcn.004d5ee1
mov ebp, dword [esp + 0xc70]
lea ecx, [esp + 0x65c]
lea edx, [esp + 0x24c]
push ecx
push edx
push str._s_s
push ebp
call fcn.004d5ee1
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov eax, 1
add esp, 0x28
cmp ecx, eax
jne 0x47bf0d
test edi, edi
je 0x47be3f
cmp edi, eax
jne 0x47bf0d
cmp dword [esp + 0xc64], eax
jne 0x47bf16
push 0x5b9260
lea eax, [esp + 0x848]
push 0x104
push eax
push 0x598470
push str.SaveDir
push str.BatchScaning
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x844]
push ecx
call fcn.004c9990
lea edx, [esp + 0x440]
lea eax, [esp + 0x848]
push edx
push ebp
push eax
lea ecx, [esp + 0xa5c]
push str._s_s._s
push ecx
call fcn.004d5ee1
lea edx, [esp + 0xa64]
push edx
call fcn.004381b0
add esp, 0x1c
test eax, eax
je 0x47bf0d
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x43c]
push eax
lea edx, [esp + 0x848]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x23c]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.0047bb30
mov edi, eax
lea eax, [esp + 0x44]
push edi
lea ecx, [esp + 0x660]
push eax
push ecx
call fcn.004d5ee1
lea edx, [esp + 0x668]
lea eax, [esp + 0x258]
push edx
push eax
push str._s_s
push ebp
call fcn.004d5ee1
mov dword [ebx], edi
mov edi, dword [esp + 0x44]
add esp, 0x34
test edi, edi
je 0x47bf48
cmp edi, 1
jne 0x47bf52
lea ecx, [esp + 0x43c]
push 0x598400
push ecx
call fcn.004d7652
add esp, 8
test eax, eax
je 0x47bf52
lea edx, [esp + 0x43c]
push 0x598da0
push edx
call fcn.004d7652
add esp, 8
test eax, eax
je 0x47bf52
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
add ecx, eax
mov dword [ebx], ecx
push 0x5b9260
push 1
push 0x598494
push str.BatchScaning
call esi
test eax, eax
pop ebp
je 0x47bf99
mov ecx, dword [ebx]
lea edx, [esp + 0x28]
push ecx
push 0x5985ac
push edx
call fcn.004d5ee1
add esp, 0xc
lea eax, [esp + 0x28]
push 0x5b9260
push eax
push str.StartingIndex
push str.BatchScaning
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc44
ret