Function at 0x404880
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548613
mov eax, dword fs:[0]
push eax
mov eax, 0x189bc
call fcn.0052ebe0
mov eax, dword [0x5a7ee8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x189bc], ebx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x9c]
mov dword [0x5ad54c], 0
call fcn.00401d20
push 0x104
lea eax, [ebp - 0x318]
push eax
call fcn.00404610
lea ecx, [ebp - 0x318]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4048f2
push dword [ebx + 0xa4]
lea eax, [ebp - 0x214]
push 0xff
push eax
push 0x558cb0
push str.Image
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x214]
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404930
sub ecx, edi
lea eax, [ebp - 0x214]
push ecx
push eax
lea ecx, [ebx + 0x208]
call fcn.004023e0
push dword [ebx + 0xa4]
lea edi, [ebp - 0x189b8]
push 0x186a0
mov eax, edi
push eax
push dword [ebx + 0x9c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0x189c0], eax
test eax, eax
js 0x40497e
mov byte [ebp + eax - 0x189b8], 0
call fcn.0040964e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40499a
push 0x80004005
call fcn.00401e00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x189c8], esi
lea eax, [ebx + 0x20c]
mov byte [ebp - 4], 1
push 0
push 0x558cb0
mov ecx, eax
mov dword [ebp - 0x189c4], eax
call fcn.004023e0
mov esi, dword [ebp - 0x189c0]
xor ebx, ebx
cmp ebx, esi
jge 0x404a4f
lea edx, [ebp - 0x110]
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x4049e0
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4049f6
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x189c4]
push eax
call fcn.004042a0
mov ecx, dword [ebp - 0x189c4]
push 2
push 0x559b30
call fcn.004042a0
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a30
sub ecx, edx
inc ecx
add ebx, ecx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a41
sub ecx, edx
inc edi
add edi, ecx
jne 0x4049d0
mov ebx, dword [ebp - 0x189bc]
push dword [ebx + 0xa4]
push 0
push str.AlphaMode
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edi, edi
mov dword [ebp - 0x189c0], eax
push edi
push edi
push 0x146
push dword [ebx + 0x1b4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
mov esi, dword [ebp - 0x189c8]
test eax, eax
jle 0x404ad0
mov eax, dword [ebp - 0x189bc]
push 0
push edi
push 0x150
push dword [eax + 0x1b4]
call ebx
push 0
cmp eax, dword [ebp - 0x189c0]
je 0x404b6f
mov eax, dword [ebp - 0x189bc]
inc edi
push 0
push 0x146
push dword [eax + 0x1b4]
call ebx
cmp edi, eax
jl 0x404a92
mov edi, dword [ebp - 0x189bc]
push 0
push 0
push 0x147
push dword [edi + 0x1b4]
call ebx
cmp eax, 0xffffffff
jne 0x404afd
push 0
push 0
push 0x14e
push dword [edi + 0x1b4]
call ebx
push 0
mov ecx, edi
call fcn.0040ec82
lea edx, [esi - 0x10]
mov dword [0x5ad54c], 1
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x404b30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x404b51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052d1cc
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x189bc]
push 0x14e
push dword [edi + 0x1b4]
call ebx
jmp 0x404ad6