Function at 0x413610
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455946
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov al, byte [ebp + 0x20c]
test al, al
je 0x41447a
mov eax, dword [esp + 0x274]
cmp eax, edi
jne 0x4137d1
mov eax, dword [ebp + 0x6c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x18b
push eax
call ebx
push 0x11
mov ecx, ebp
mov byte [esp + 0x14], al
call fcn.00412e20
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00412e20
lea esi, [ebp + 0x54]
push 5
lea edx, [esp + 0x30]
push 4
push edx
mov ecx, esi
call fcn.004012d0
mov eax, dword [esp + 0x2c]
push 5
cmp eax, 0xffffffff
push 4
jne 0x4136f9
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004012d0
mov eax, dword [esp + 0x14]
cmp eax, edi
jle 0x4136db
push 5
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.004012d0
mov eax, dword [ebp + 0x70]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp + 0x70]
push 1
push edi
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [esp + 0x10]
test al, al
jbe 0x41447a
mov edx, dword [ebp + 0x6c]
push edi
push edi
push 0x184
push edx
call ebx
jmp 0x41447a
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.004012d0
test eax, eax
jle 0x41447a
cmp dword [esp + 0x30], edi
jle 0x4137a3
cmp dword [0x4662cc], edi
je 0x413736
mov dword [0x4662cc], edi
mov ecx, dword [ebp + 0x68]
push 0x466f40
push edi
push 0x181
push ecx
call ebx
mov al, byte [esp + 0x10]
test al, al
jbe 0x41374b
mov edx, dword [ebp + 0x6c]
push edi
push edi
push 0x184
push edx
call ebx
mov eax, dword [esp + 0x30]
xor edi, edi
test eax, eax
jle 0x4137a3
push 5
lea eax, [esp + 0x18]
push 4
push eax
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.004012d0
test eax, eax
je 0x4137a3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4137a3
push 5
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.004012d0
mov eax, dword [ebp + 0x6c]
lea edx, [esp + 0x60]
push edx
push 0
push 0x180
push eax
call ebx
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jl 0x413755
mov ecx, dword [ebp + 0x6c]
push 0
push 0
push 0x188
push ecx
call ebx
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
je 0x41447a
mov edx, dword [ebp + 0x6c]
push 0
push ecx
push 0x186
push edx
call ebx
jmp 0x41447a
cmp eax, 1
jne 0x413a9e
push 0x12
mov ecx, ebp
call fcn.00412e20
lea esi, [ebp + 0x54]
push 5
lea eax, [esp + 0x38]
push 4
push eax
mov ecx, esi
call fcn.004012d0
mov ecx, dword [0x46c2d8]
push ecx
push edi
push str.LIST1CRC
push 0x466998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x41447a
lea edx, [esp + 0x38]
push 0xa
push edx
push ecx
call fcn.00432f92
mov eax, dword [0x46c2d8]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea ecx, [esp + 0x38]
push eax
push ecx
push str.LIST1CRC
push 0x466998
call edi
mov dl, byte [esp + 0x1b]
xor ebx, ebx
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x68]
push 0x466f20
push ebx
push 0x181
push eax
mov dword [esp + 0x27c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x16
mov ecx, ebp
call fcn.00412e20
push 5
lea ecx, [esp + 0x18]
push 4
push ecx
mov ecx, esi
call fcn.004012d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4139c0
push 5
lea edx, [esp + 0x64]
push eax
push edx
mov ecx, esi
call fcn.004012d0
mov eax, dword [0x466060]
lea ecx, [esp + 0x60]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x413924
lea edx, [esp + 0x60]
shr edx, 0x10
jne 0x4138e0
xor eax, eax
lea ecx, [esp + 0x60]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004163b0
jmp 0x413924
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x413924
push esi
lea ecx, [esp + 0x14]
call fcn.00402070
test eax, eax
je 0x413924
lea eax, [esi + 1]
cmp eax, esi
jb 0x413924
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 1
call fcn.004179a0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x466064]
mov byte [esp + 0x26c], 0
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413978
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413978
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
lea ecx, [esp + 0x38]
push 0xa
push ecx
push ebx
call fcn.00432f92
mov edx, dword [0x46c2d8]
add esp, 0xc
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
push 0x466d64
call edi
push 5
lea edx, [esp + 0x18]
lea esi, [ebp + 0x54]
push 4
push edx
mov ecx, esi
inc ebx
call fcn.004012d0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4138a2
lea eax, [esp + 0x38]
push 0xa
push eax
push ebx
call fcn.00432f92
mov ecx, dword [0x46c2d8]
add esp, 0xc
lea edx, [esp + 0x38]
push ecx
push 0x46c22c
push edx
push 0x466d64
call edi
push 0x84c
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x466d54
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x38]
push eax
add ecx, 0x280
mov byte [esp + 0x278], 2
call fcn.00415920
lea edx, [esp + 0x24]
mov ecx, eax
push edx
push 2
mov byte [esp + 0x27c], 4
call fcn.00415e60
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ecx, ebp
call fcn.00412cb0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x26c], 0
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call fcn.004180e0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov esi, eax
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00417130
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
cmp ebx, esi
mov dword [esp + 0x26c], 0xffffffff
je 0x413a98
push 0
mov ecx, ebx
call fcn.004184c0
add ebx, 4
cmp ebx, esi
jne 0x413a84
mov ebx, dword [esp + 0x20]
push ebx
jmp 0x414472
cmp eax, 2
jne 0x413d6e
push 0x13
mov ecx, ebp
call fcn.00412e20
lea esi, [ebp + 0x54]
push 5
lea edx, [esp + 0x38]
push 4
push edx
mov ecx, esi
call fcn.004012d0
mov eax, dword [0x46c2d8]
push eax
push edi
push str.LIST2CRC
push 0x466998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x41447a
lea edx, [esp + 0x38]
push 0xa
push edx
push ecx
call fcn.00432f92
mov eax, dword [0x46c2d8]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea ecx, [esp + 0x38]
push eax
push ecx
push str.LIST2CRC
push 0x466998
call edi
mov dl, byte [esp + 0x1b]
xor ebx, ebx
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x68]
push 0x466f00
push ebx
push 0x181
push eax
mov dword [esp + 0x27c], 5
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x17
mov ecx, ebp
call fcn.00412e20
push 5
lea ecx, [esp + 0x18]
push 4
push ecx
mov ecx, esi
call fcn.004012d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413c90
push 5
lea edx, [esp + 0x64]
push eax
push edx
mov ecx, esi
call fcn.004012d0
mov eax, dword [0x466060]
lea ecx, [esp + 0x60]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x413bf4
lea edx, [esp + 0x60]
shr edx, 0x10
jne 0x413bb0
xor eax, eax
lea ecx, [esp + 0x60]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004163b0
jmp 0x413bf4
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x413bf4
push esi
lea ecx, [esp + 0x14]
call fcn.00402070
test eax, eax
je 0x413bf4
lea eax, [esi + 1]
cmp eax, esi
jb 0x413bf4
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 6
call fcn.004179a0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x466064]
mov byte [esp + 0x26c], 5
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413c48
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413c48
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
lea ecx, [esp + 0x38]
push 0xa
push ecx
push ebx
call fcn.00432f92
mov edx, dword [0x46c2d8]
add esp, 0xc
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
push 0x466d48
call edi
push 5
lea edx, [esp + 0x18]
lea esi, [ebp + 0x54]
push 4
push edx
mov ecx, esi
inc ebx
call fcn.004012d0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x413b72
lea eax, [esp + 0x38]
push 0xa
push eax
push ebx
call fcn.00432f92
mov ecx, dword [0x46c2d8]
add esp, 0xc
lea edx, [esp + 0x38]
push ecx
push 0x46c22c
push edx
push 0x466d48
call edi
push 0xc34
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x466d38
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x38]
push eax
add ecx, 0x280
mov byte [esp + 0x278], 7
call fcn.00415920
lea edx, [esp + 0x24]
mov ecx, eax
push edx
push 2
mov byte [esp + 0x27c], 9
call fcn.00415e60
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ecx, ebp
call fcn.00412cb0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x26c], 5
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call fcn.004180e0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov esi, eax
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00417130
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
cmp ebx, esi
mov dword [esp + 0x26c], 0xffffffff
je 0x413d68
push 0
mov ecx, ebx
call fcn.004184c0
add ebx, 4
cmp ebx, esi
jne 0x413d54
mov ebx, dword [esp + 0x20]
push ebx
jmp 0x414472
cmp eax, 3
jne 0x414098
push 0x14
mov ecx, ebp
call fcn.00412e20
push 5
lea edx, [esp + 0x38]
push 4
lea ecx, [ebp + 0x54]
push edx
call fcn.004012d0
mov eax, dword [0x46c2d8]
push eax
push edi
push str.LIST3CRC
push 0x466998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x41447a
lea edx, [esp + 0x38]
push 0xa
push edx
push ecx
call fcn.00432f92
mov eax, dword [0x46c2d8]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea ecx, [esp + 0x38]
push eax
push ecx
push str.LIST3CRC
push 0x466998
call edi
mov dl, byte [esp + 0x1b]
xor ebx, ebx
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x68]
push 0x466ee0
push ebx
push 0x181
push eax
mov dword [esp + 0x27c], 0xa
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x18
mov ecx, ebp
call fcn.00412e20
push 5
lea ecx, [esp + 0x18]
push 4
lea esi, [ebp + 0x54]
push ecx
mov ecx, esi
call fcn.004012d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413f6c
cmp eax, 0x104
jg 0x413f6c
push 5
lea edx, [esp + 0x64]
push eax
push edx
mov ecx, esi
call fcn.004012d0
mov eax, dword [0x466060]
lea ecx, [esp + 0x60]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x413ed0
lea edx, [esp + 0x60]
shr edx, 0x10
jne 0x413e8c
xor eax, eax
lea ecx, [esp + 0x60]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004163b0
jmp 0x413ed0
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x413ed0
push esi
lea ecx, [esp + 0x14]
call fcn.00402070
test eax, eax
je 0x413ed0
lea eax, [esi + 1]
cmp eax, esi
jb 0x413ed0
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 0xb
call fcn.004179a0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x466064]
mov byte [esp + 0x26c], 0xa
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413f24
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413f24
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
lea ecx, [esp + 0x38]
push 0xa
push ecx
push ebx
call fcn.00432f92
mov edx, dword [0x46c2d8]
add esp, 0xc
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
push 0x466d2c
call edi
push 5
lea edx, [esp + 0x18]
lea esi, [ebp + 0x54]
push 4
push edx
mov ecx, esi
inc ebx
call fcn.004012d0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x413e43
lea eax, [esp + 0x38]
push 0xa
push eax
push ebx
call fcn.00432f92
mov ecx, dword [0x46c2d8]
add esp, 0xc
lea edx, [esp + 0x38]
push ecx
push 0x46c22c
push edx
push 0x466d2c
call edi
push 0x101c
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x466d1c
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x38]
push eax
add ecx, 0x280
mov byte [esp + 0x278], 0xc
call fcn.00415920
lea edx, [esp + 0x24]
mov ecx, eax
push edx
push 2
mov byte [esp + 0x27c], 0xe
call fcn.00415e60
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call esi
push eax
mov ecx, ebp
call fcn.00412cb0
push 0x1404
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x466d0c
mov byte [esp + 0x278], 0xa
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x38]
push eax
add ecx, 0x280
mov byte [esp + 0x278], 0xf
call fcn.00415920
lea edx, [esp + 0x24]
mov ecx, eax
push edx
push 2
mov byte [esp + 0x27c], 0x11
call fcn.00415e60
push eax
call esi
push eax
mov ecx, ebp
call fcn.00412cb0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x274], 0xa
call fcn.00417130
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
cmp ebx, esi
mov dword [esp + 0x26c], 0xffffffff
je 0x414092
push 0
mov ecx, ebx
call fcn.004184c0
add ebx, 4
cmp ebx, esi
jne 0x41407e
mov ebx, dword [esp + 0x20]
push ebx
jmp 0x414472
cmp eax, 4
jne 0x41447a
push 0x15
mov ecx, ebp
call fcn.00412e20
push 5
lea ecx, [esp + 0x38]
lea esi, [ebp + 0x54]
push 4
push ecx
mov ecx, esi
call fcn.004012d0
mov edx, dword [0x46c2d8]
push edx
push edi
push str.LIST4CRC
push 0x466998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x41447a
lea eax, [esp + 0x38]
push 0xa
push eax
push ecx
call fcn.00432f92
mov ecx, dword [0x46c2d8]
add esp, 0xc
lea edx, [esp + 0x38]
push ecx
push edx
push str.LIST4CRC
push 0x466998
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov al, byte [esp + 0x1b]
mov dword [esp + 0x50], edi
mov byte [esp + 0x4c], al
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov ecx, dword [ebp + 0x68]
push 0x466ec0
push edi
push 0x181
push ecx
mov dword [esp + 0x27c], 0x12
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x19
mov ecx, ebp
call fcn.00412e20
push 5
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, esi
xor ebx, ebx
call fcn.004012d0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x414308
cmp eax, 0x104
jg 0x414308
push 5
push eax
lea eax, [esp + 0x68]
lea ecx, [ebp + 0x54]
push eax
call fcn.004012d0
mov ecx, dword [0x466060]
lea edx, [esp + 0x60]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x414268
lea eax, [esp + 0x60]
shr eax, 0x10
jne 0x414234
xor edi, edi
lea ecx, [esp + 0x60]
lea edx, [esp + 0x164]
mov di, cx
push 0x100
push edx
push edi
call fcn.00416830
mov ecx, 0x100
sub ecx, eax
cmp ecx, 2
jle 0x4141e8
lea edx, [esp + 0x164]
lea ecx, [esp + 0x10]
push edx
call fcn.00415b40
jmp 0x414268
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00401fc0
test eax, eax
je 0x414227
push esi
push eax
push edi
call fcn.00416830
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jg 0x414227
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00401fc0
test eax, eax
jne 0x4141ff
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004165b0
jmp 0x414268
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x414268
push esi
lea ecx, [esp + 0x14]
call fcn.00402070
test eax, eax
je 0x414268
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x64]
inc esi
push ecx
push esi
push edx
call fcn.00410080
add esp, 0x10
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x278], 0x13
call fcn.004179a0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x466064]
mov byte [esp + 0x26c], 0x12
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4142bc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4142bc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
lea ecx, [esp + 0x38]
push 0xa
push ecx
push ebx
call fcn.00432f92
mov edx, dword [0x46c2d8]
add esp, 0xc
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
push 0x466d00
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 5
lea edx, [esp + 0x18]
push 4
push edx
lea ecx, [ebp + 0x54]
inc ebx
call fcn.004012d0
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
jne 0x41416c
lea eax, [esp + 0x38]
push 0xa
push eax
push ebx
call fcn.00432f92
mov ecx, dword [0x46c2d8]
add esp, 0xc
lea edx, [esp + 0x38]
push ecx
push 0x46c22c
push edx
push 0x466d00
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x464
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x466cf4
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x64]
push eax
add ecx, 0x280
mov byte [esp + 0x278], 0x14
call fcn.00415920
lea edx, [esp + 0x54]
mov ecx, eax
push edx
push 1
mov byte [esp + 0x27c], 0x16
call fcn.00415e60
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ecx, ebp
call fcn.00412cb0
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov esi, ebx
mov byte [esp + 0x26c], 0x12
cmp esi, ebx
je 0x4143f9
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [edi]
mov eax, dword [esi]
cmp ecx, eax
je 0x4143eb
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4143c5
mov edx, dword [0x466064]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4143cc
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4143da
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, edi
call fcn.004166a0
jmp 0x4143eb
mov ecx, edi
call fcn.00402170
mov eax, dword [esi]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call ebp
add esi, 4
add edi, 4
cmp esi, ebx
jne 0x4143a9
mov ebx, dword [esp + 0x54]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp edi, ebx
mov esi, edi
je 0x414433
mov eax, dword [esi]
mov edx, dword [0x466064]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41442c
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41442c
mov edx, dword [esi]
sub edx, 0xc
push edx
call fcn.00427e30
add esp, 4
add esi, 4
cmp esi, ebx
jne 0x414405
mov esi, dword [esp + 0x50]
mov dword [esp + 0x54], edi
cmp esi, edi
je 0x41446d
mov eax, dword [esi]
mov edx, dword [0x466064]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414466
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x414466
mov edx, dword [esi]
sub edx, 0xc
push edx
call fcn.00427e30
add esp, 4
add esi, 4
cmp esi, edi
jne 0x41443f
mov eax, dword [esp + 0x50]
push eax
call fcn.00427e30
add esp, 4
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x260
ret 4