Function at 0x411b50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d100
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x586dc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.0041460c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411b99
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
call fcn.0041460c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411bc6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
call fcn.0041460c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411bf3
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov bl, 4
mov byte [ebp - 4], bl
call fcn.0042518d
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x411c1a
xor eax, eax
jmp 0x411c29
mov eax, ecx
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411c20
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004014c0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x411c57
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004012f0
mov esi, dword [ebp - 0x14]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00513673
add esp, 8
test eax, eax
js 0x411ef9
cmp eax, dword [esi - 8]
jg 0x411ef9
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.005145de
add esp, 8
test eax, eax
je 0x411cdd
sub eax, esi
cmp eax, 0xffffffff
je 0x411cdd
inc eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401d90
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00401f80
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411cdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xb
push str.Setting.ini
lea ecx, [ebp - 0x14]
call fcn.00401ec0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0041c236
mov ebx, eax
test ebx, ebx
je 0x411d03
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412186
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x100
or eax, ecx
jge 0x411d39
push 0x100
lea ecx, [ebp - 0x10]
call fcn.004012f0
mov edx, dword [ebp - 0x10]
test ebx, ebx
jne 0x411d41
xor eax, eax
jmp 0x411d44
mov eax, dword [ebx + 0x20]
push 0x100
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00513673
add esp, 8
test eax, eax
js 0x411ef9
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x411ef9
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx], 0
mov edx, dword [ebp - 0x10]
push 0x53d808
push edx
call fcn.0051353f
add esp, 8
test eax, eax
sete al
test al, al
je 0x411da0
mov eax, 1
jmp 0x411de7
mov eax, dword [ebp - 0x10]
push str.Button
push eax
call fcn.0051353f
add esp, 8
test eax, eax
sete al
test al, al
je 0x412186
mov ecx, dword [ebx + 0x20]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffff
test al, 2
je 0x411dda
mov eax, 2
jmp 0x411de7
test al, 9
je 0x41214a
mov eax, 3
dec eax
je 0x411fda
dec eax
je 0x411f03
dec eax
je 0x411e14
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41219d
cmp byte [ebp + 0xc], 0
je 0x411e5f
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov eax, 0x53d0cc
jne 0x411e3b
mov eax, 0x53cc84
push eax
lea ecx, [ebp - 0x10]
call fcn.00401610
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x18]
push esi
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x41208a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x100
or eax, ecx
jge 0x411e86
push 0x100
lea ecx, [ebp - 0x10]
call fcn.004012f0
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp - 0x18]
push esi
push 0x100
push edx
mov edx, dword [ebp + 0x14]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00513673
add esp, 8
test eax, eax
js 0x411ef9
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x411ef9
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x10]
push 0x53d0cc
push edx
mov byte [eax + ecx], 0
call fcn.00403ec0
mov edx, dword [ebx + 0x20]
add esp, 8
xor ecx, ecx
test al, al
setne cl
push 0
mov eax, ecx
push eax
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x41208a
push 0x80070057
call fcn.00401000
cmp byte [ebp + 0xc], 0
je 0x411f38
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov eax, 0x53d0cc
jne 0x411f2a
mov eax, 0x53cc84
push eax
lea ecx, [ebp - 0x10]
call fcn.00401610
jmp 0x411ffe
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x100
or eax, ecx
jge 0x411f5f
push 0x100
lea ecx, [ebp - 0x10]
call fcn.004012f0
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x18]
push esi
push 0x100
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00513673
add esp, 8
test eax, eax
js 0x411ef9
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x411ef9
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
mov byte [eax + edx], 0
lea eax, [ebp - 0x10]
push 0x53d0cc
push eax
call fcn.00403ec0
mov edx, dword [ebx + 0x20]
add esp, 8
xor ecx, ecx
test al, al
setne cl
push 0
mov eax, ecx
push eax
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x41208a
cmp byte [ebp + 0xc], 0
je 0x412016
lea eax, [ebp - 0x10]
push eax
push esi
mov ecx, edi
call fcn.0041b376
push str.newline
push 0x53bea8
lea ecx, [ebp - 0x10]
call fcn.00404380
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x18]
push esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x41208a
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
push esi
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.004013c0
push eax
push edi
mov edi, dword [ebp - 0x18]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00513673
add esp, 8
test eax, eax
js 0x411ef9
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x411ef9
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
push 0x53bea8
mov byte [eax + ecx], 0
push str.newline
lea ecx, [ebp - 0x10]
call fcn.00404380
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edx
push eax
call fcn.0041c2e0
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4120aa
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4120ca
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4120ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412110
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412136
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
call fcn.00401270
lea ecx, [ebp - 0x18]
call fcn.00401270
lea ecx, [ebp - 0x10]
call fcn.00401270
lea ecx, [ebp + 0x14]
call fcn.00401270
lea ecx, [ebp + 0x18]
call fcn.00401270
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4121a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4121cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4121ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412238
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret