Function at 0x419640
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45781d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x476a54]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov dword [edi], fcn.004192d0
lea esi, [edi + 4]
call fcn.0044922a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.ChickenInvaders2
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004022f0
push str..log
push eax
lea eax, [ebp - 0x2c]
mov bl, 1
push eax
mov byte [ebp - 4], bl
call fcn.0040f8c0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00413af0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4196e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
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 0x419706
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, edi
call fcn.004192d0
push str.._ChickenInvaders2.cfg
push pe_nt_image_headers32
mov edi, eax
mov ecx, dword [edi]
lea eax, [ebp - 0x130]
push eax
push 0x45a67d
push str.logFilename
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x419758
lea eax, [ebp - 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419740
sub eax, edx
push eax
lea edx, [ebp - 0x130]
push edx
mov ecx, esi
call fcn.004021a0
mov eax, dword [esi]
push str.._ChickenInvaders2.cfg
push eax
mov eax, dword [edi]
push str.logFilename
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x14
mov byte [ebp - 4], 3
call fcn.00449098
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 4
je 0x419798
mov esi, dword [esi]
push 0x1041
push esi
call fcn.0044a0df
jmp 0x41979a
xor eax, eax
mov edi, dword [ebp - 0x28]
push str.Application:
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov dword [edi + 8], eax
call fcn.004022f0
push str.ChickenInvaders2
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 5
call fcn.0040f8c0
add esp, 0xc
push str._version
push eax
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 6
call fcn.0040f8c0
add esp, 0xc
push str.2.40
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call fcn.0040f8c0
add esp, 0xc
push 0x466f94
push eax
lea ecx, [ebp - 0x18]
mov bl, 8
push ecx
mov byte [ebp - 4], bl
call fcn.0040f8c0
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push eax
mov byte [ebp - 4], 9
call dword [edx + 0x54]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41985a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41987b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41989c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4198bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
call fcn.0043c9c5
add esp, 4
mov dword [ebp - 0x30], eax
push 0x466fac
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edx
call fcn.004195b0
mov esi, eax
push str.Log_date:
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.004022f0
push esi
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 0xb
call fcn.00408a60
add esp, 0xc
push 0x466f94
push eax
lea edx, [ebp - 0x1c]
mov bl, 0xc
push edx
mov byte [ebp - 4], bl
call fcn.0040f8c0
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push eax
mov byte [ebp - 4], 0xd
call dword [edx + 0x54]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41996a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41998b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4199c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4199c1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
mov eax, edi
call fcn.0043c4b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret