Function at 0x45bc10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4da6bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x45be44
push 0
push esi
call fcn.004589b0
mov eax, dword [0x5144c4]
push 0x4c009c
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00417280
mov eax, dword [esi + 0x10]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [ebp - 0xc]
call fcn.004020b0
lea ecx, [ebp - 0x64]
call fcn.004128e0
mov eax, dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x64]
call fcn.00410dd0
test eax, eax
je 0x45be08
lea ecx, [ebp - 0x64]
call fcn.0040dca0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
call fcn.0040edb0
mov edi, eax
test edi, edi
je 0x45bd05
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
inc eax
cdq
push 2
push edx
push eax
call fcn.004a1b00
mov esi, eax
add eax, 0x80000000
adc edx, 0
mov dword [ebp - 0x18], edx
jne 0x45bcc8
cmp eax, 0xffffffff
jbe 0x45bccc
xor edi, edi
jmp 0x45bd05
cmp esi, 0x400
jg 0x45bcec
push esi
call fcn.00457990
add esp, 4
test al, al
je 0x45bcec
mov eax, esi
call fcn.0049fa10
mov eax, esp
jmp 0x45bcf5
push esi
lea ecx, [ebp - 8]
call fcn.00457e40
mov ecx, dword [ebp - 0x10]
push ecx
shr esi, 1
push esi
push edi
push eax
call fcn.00457430
mov edi, eax
mov eax, dword [ebx + 0x68]
cmp eax, 0xffffffff
jne 0x45bd1e
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x45bd1e
cmp eax, 1
je 0x45bd1e
mov eax, dword [ebx + 0x28]
jmp 0x45bd22
mov eax, dword [ebx + eax*4 + 0x28]
push 0x4bfc48
push eax
call dword [sym.imp.USER32.dll_GetPropW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esi + 4]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esi, 4
push 0x452
push edx
call edi
call fcn.00403350
push eax
push 0xbc614e
push str.DefaultFileFormat
push str.Setting
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
cmp ebx, 0xbc614e
jne 0x45bd7a
mov ebx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
push 0
push eax
push 0x41e
push ecx
call edi
mov edx, dword [esi]
push 0
push ebx
push 0x412
push edx
call edi
mov eax, dword [esi]
push 0
push 0
push 0x441
push eax
call edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0xbc614e
push str.WrapMode
push str.Edit
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xbc614e
je 0x45bddd
test eax, eax
je 0x45bddd
cmp eax, 3
je 0x45bddd
cmp eax, 4
je 0x45bddd
push 0
push eax
mov ecx, esi
call fcn.00457d60
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x80], 1
test eax, eax
je 0x45be08
jmp 0x45bdf6
mov eax, dword [ebp - 8]
mov esi, dword [eax]
push eax
mov dword [ebp - 8], esi
call fcn.0049e944
add esp, 4
test esi, esi
jne 0x45bdf3
lea ecx, [ebp - 0x44]
call fcn.0040eb60
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x45be25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45be44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049e9d2
mov esp, ebp
pop ebp
ret 0x10