Function at 0x41b059
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, 0x522d98
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41b7f7
mov ecx, ebx
call fcn.0041ca2d
cmp dword [0x5278b8], 0
jne 0x41b0cb
test edi, edi
jne 0x41b0cb
push edi
lea eax, [ebp - 0x84]
push 0x4bc474
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push ebx
push eax
push str.SaveSettings
push 0x4c3098
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x41b7f7
push esi
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push dword [0x5278b8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a6c4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x526cd4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x524fb4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x524fb8]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x524fbc]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea edx, [ebp - 0x38c]
push dword [0x522fbc]
push ecx
push 0
push ecx
mov ecx, 0x52aba0
call fcn.00410806
add esp, 0x10
lea edx, [ebp - 0x38c]
push dword [0x522fbc]
push ecx
push 0
push ecx
mov ecx, 0x52a6e0
call fcn.00410806
push dword [0x5278e0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a660]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab64]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52adb4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x40
lea eax, [ebp - 0x44]
push dword [0x52a6ac]
push 0x4bc474
push eax
call ebx
push dword [0x52adb8]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278d0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278cc]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a5b4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278c8]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea eax, [ebp - 0x44]
push dword [0x526ce8]
push 0x4bc474
push eax
call ebx
push dword [0x527684]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a5e8]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a684]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab90]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a680]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea eax, [ebp - 0x44]
push dword [0x52a5e0]
push 0x4bc474
push eax
call ebx
push dword [0x52a5b0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a670]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab60]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a134]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278ac]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea eax, [ebp - 0x44]
push dword [0x526f0c]
push 0x4bc474
push eax
call ebx
push dword [0x5275e4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x526cdc]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278c4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x526ce0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278f0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
xor ecx, ecx
call fcn.004058ce
push eax
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52adb0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab7c]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab6c]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a6b0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a66c]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea eax, [ebp - 0x44]
push dword [0x52a6b8]
push 0x4bc474
push eax
call ebx
push dword [0x52a694]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x527548]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52768c]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278c0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
mov eax, dword [0x52a5c8]
add eax, 0xa
push eax
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea eax, [ebp - 0x44]
push dword [0x52a5d0]
push 0x4bc474
push eax
call ebx
push dword [0x52a5d4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a5d8]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a5dc]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a5c4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a6b4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea eax, [ebp - 0x44]
push dword [0x52ada8]
push 0x4bc474
push eax
call ebx
push dword [0x52754c]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x526cd0]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5275e8]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x527688]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x34
call fcn.00410567
push dword [0x527550]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x5278ec]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab84]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52adac]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab5c]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x44
lea eax, [ebp - 0x44]
push dword [0x52ab78]
push 0x4bc474
push eax
call ebx
push dword [0x52ab80]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a6bc]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a6a4]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52ab70]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a69c]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x48
lea eax, [ebp - 0x44]
push dword [0x52ab58]
push 0x4bc474
push eax
call ebx
push dword [0x52a674]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
push dword [0x52a668]
lea eax, [ebp - 0x44]
push 0x4bc474
push eax
call ebx
add esp, 0x24
push 0x522d98
push esi
push 0x4c3098
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x41b688
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0x2c
push eax
push dword [0x52ab74]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
sub eax, ecx
push dword [0x52ab74]
mov dword [0x52a128], eax
mov eax, dword [ebp - 0x48]
sub eax, edx
mov dword [0x52a120], ecx
mov dword [0x52a124], edx
mov dword [0x52a12c], eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x41b67e
test byte [ebp - 0x6c], 2
jne 0x41b67e
and dword [0x52a130], eax
jmp 0x41b688
mov dword [0x52a130], 1
push 0x522d98
push 0
push str.StickyWindowPosition
push str.Settings2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x41b7f1
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
call esi
push 1
mov edi, eax
call esi
mov esi, eax
lea eax, [ebp - 0xc4]
push esi
push edi
push str._ix_i_PosX
push eax
call ebx
push esi
push edi
lea eax, [ebp - 0x104]
push str._ix_i_PosY
push eax
call ebx
push esi
push edi
lea eax, [ebp - 0x144]
push str._ix_i_SizeX
push eax
call ebx
push esi
push edi
lea eax, [ebp - 0x184]
push str._ix_i_SizeY
push eax
call ebx
add esp, 0x40
lea eax, [ebp - 0x44]
push esi
push edi
push str._ix_i_Maximized
push eax
call ebx
push dword [0x52a120]
lea eax, [ebp - 0x84]
push 0x4bc474
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x84]
add esp, 0x1c
mov edi, str.Window
push 0x522d98
push eax
lea eax, [ebp - 0xc4]
push eax
push edi
call esi
push dword [0x52a124]
lea eax, [ebp - 0x84]
push 0x4bc474
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x522d98
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push dword [0x52a128]
lea eax, [ebp - 0x84]
push 0x4bc474
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x522d98
push eax
lea eax, [ebp - 0x144]
push eax
push edi
call esi
push dword [0x52a12c]
push 0x4bc474
lea eax, [ebp - 0x84]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x522d98
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call esi
push dword [0x52a130]
lea eax, [ebp - 0x84]
push 0x4bc474
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x522d98
push eax
lea eax, [ebp - 0x44]
push eax
push edi
call esi
call fcn.0042015c
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret