Function at 0x4207e0
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x50d417
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x5594e8]
xor eax, dword [esp + 0x128]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x128], eax
mov dword [esp + 0x24], esi
call fcn.00420110
xor ebx, ebx
mov dword [esi], fcn.00420780
mov dword [esi + 0x20], 0x524764
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x138], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov byte [esi + 0xf9], bl
mov dword [esi + 0xfc], ebx
mov byte [esi + 0xf8], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x144], 1
call fcn.0041b800
mov edx, dword [eax]
add esp, 0x10
mov ecx, esi
call fcn.00420780
push edx
push 0x100
lea edx, [esp + 0x30]
push edx
lea edi, [eax + 4]
mov eax, dword [edi]
push 0x5245f0
push str.bAutoConfigure
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4208d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4208fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
jle 0x420910
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0xf8], al
cmp byte [esi + 0xf8], bl
mov ebp, 0x5247d4
jne 0x420922
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 2
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bAutoConfigure
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42099c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0xf9], bl
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 3
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bPauseAutoConfigure
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
jle 0x420a3e
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0xf9], al
cmp byte [esi + 0xf9], bl
mov ebp, 0x5247d4
jne 0x420a50
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 4
call fcn.0041b800
mov eax, dword [eax]
mov edi, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bPauseAutoConfigure
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420aa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420aca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp byte [esi + 0xf9], bl
mov byte [esi + 0x79], 1
jne 0x420adc
mov byte [esi + 0x7d], bl
mov byte [esi + 0x7a], bl
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
fild dword [ecx + 0x40]
mov edx, dword [esi + 0xd4]
add edx, 0x78
mov dword [esp + 0x18], 0
fmul dword [0x5216e0]
mov eax, dword [esp + 0x18]
mov dword [edx], eax
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x12c]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
pop edi
mov dword [edx + 8], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x120]
xor ecx, dword [esp + 0x130]
pop ebp
pop ebx
add esp, 0x128
jmp fcn.004ecf23