Function at 0x46cbe0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4fc9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov eax, dword [0x531d28]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x438]
push edi
mov dword [esp + 0x428], eax
lea eax, [esp + 0x3c]
push esi
xor ebx, ebx
push eax
mov edi, ecx
mov dword [esp + 0x40], ebx
call fcn.00479d80
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x434], ebx
call fcn.00465020
lea ecx, [edi + 0x50]
mov byte [esp + 0x434], 1
call fcn.004ed255
lea ecx, [edi + 0x58]
call fcn.004ed255
lea ecx, [edi + 0x60]
call fcn.004ed255
push esi
push 0x3e8
lea ecx, [esp + 0x48]
push ecx
push 0x502a56
push str.HeaderCtrlBmp
push str.HeaderCtrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x40]
test al, al
je 0x46ccc8
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401e30
add esp, 0xc
mov ebp, dword [eax]
mov ebx, 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x434], 2
mov dword [esp + 0x38], ebx
call fcn.004ed255
push 0
push ebp
lea ecx, [esp + 0x38]
call fcn.004631c0
test eax, eax
mov byte [esp + 0x13], 0
jne 0x46cccd
mov byte [esp + 0x13], 1
test bl, 1
mov dword [esp + 0x434], 1
je 0x46ccfb
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46ccfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x46cd44
lea ecx, [esp + 0x30]
mov byte [esp + 0x434], 0
call fcn.00465040
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x434], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cd3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x46cf60
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 1
push str.HeaderCtrlStart
push str.HeaderCtrl
call ebp
push esi
push 1
push str.HeaderCtrlEnd
push str.HeaderCtrl
mov ebx, eax
call ebp
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004ecef3
mov esi, eax
mov eax, dword [esp + 0x34]
xor ebp, ebp
cmp eax, ebp
jne 0x46cd90
mov dword [esp + 0x14], ebp
jmp 0x46cdc0
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], ecx
push 0x18
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
xor eax, eax
mov dword [ecx], eax
lea eax, [esp + 0x40]
push eax
mov dword [ecx + 4], ebp
lea eax, [edi + 0x50]
push eax
mov dword [ecx + 8], ebx
push esi
mov dword [ecx + 0xc], edx
call fcn.00479a40
mov eax, dword [esp + 0x50]
add esp, 0x1c
test eax, eax
je 0x46ce1c
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], ecx
push 0x18
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
sub eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
lea eax, [esp + 0x40]
push eax
lea eax, [edi + 0x58]
push eax
push esi
mov dword [ecx + 0xc], edx
call fcn.00479a40
mov eax, dword [esp + 0x50]
add esp, 0x1c
xor ecx, ecx
test eax, eax
je 0x46ce80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], ecx
push 0x18
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
sub ecx, dword [esp + 0x38]
test eax, eax
mov ebx, ecx
je 0x46ceb6
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], ecx
push 0x18
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
lea eax, [esp + 0x40]
push eax
lea eax, [edi + 0x60]
push eax
push esi
mov dword [ecx + 0xc], edx
call fcn.00479a40
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x1c]
add esp, 0x1c
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46cf1e
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], ecx
push 0x18
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [edi + 0x68], eax
mov byte [esp + 0x434], 0
call fcn.00465040
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x434], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cf5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x428]
call fcn.004d40be
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4