Function at 0x412220
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x455816
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov eax, dword [esp + 0x178]
push ebx
dec eax
push ebp
push esi
cmp eax, 3
push edi
mov dword [esp + 0x38], ecx
ja case.default.0x412254
jmp dword [eax*4 + 0x412a38]
mov cl, byte [esp + 0x13]
xor ebp, ebp
mov byte [esp + 0x14], cl
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x180], ebp
lea edx, [esp + 0x4c]
push 0xa
push edx
push ebp
call fcn.00432f92
mov eax, dword [0x46c2d8]
add esp, 0xc
lea ecx, [esp + 0x74]
lea edx, [esp + 0x4c]
push eax
push 0x104
push ecx
push 0x46c22c
push edx
push 0x466d64
call ebx
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412385
mov eax, dword [0x466060]
lea ecx, [esp + 0x74]
test ecx, ecx
mov dword [esp + 0x30], eax
je 0x412326
lea edx, [esp + 0x74]
shr edx, 0x10
jne 0x4122f2
xor eax, eax
lea ecx, [esp + 0x74]
mov ax, cx
lea ecx, [esp + 0x30]
push eax
call fcn.004163b0
jmp 0x412326
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x412326
push esi
lea ecx, [esp + 0x34]
call fcn.00402070
test eax, eax
je 0x412326
mov ecx, dword [esp + 0x30]
push esi
lea eax, [esp + 0x78]
inc esi
push eax
push esi
push ecx
call fcn.00410080
add esp, 0x10
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 1
call fcn.00416e80
mov eax, dword [esp + 0x30]
mov edx, dword [0x466064]
mov byte [esp + 0x180], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412378
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412378
mov edx, dword [esp + 0x30]
lea eax, [edx - 0xc]
push eax
call fcn.00427e30
add esp, 4
inc ebp
cmp ebp, 0x1f4
jl 0x41227e
push 0x84c
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x466d54
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x68]
push eax
add ecx, 0x280
mov byte [esp + 0x18c], 2
call fcn.00415920
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
push 2
mov byte [esp + 0x190], 4
call fcn.00415e60
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [esp + 0x44]
push eax
call fcn.00412cb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 0
call fcn.00417030
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x188], 0xffffffff
call fcn.00417130
mov ecx, dword [esp + 0x18]
jmp 0x412a12
mov dl, byte [esp + 0x13]
xor ebp, ebp
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x180], 5
lea eax, [esp + 0x4c]
push 0xa
push eax
push ebp
call fcn.00432f92
mov ecx, dword [0x46c2d8]
add esp, 0xc
lea edx, [esp + 0x74]
lea eax, [esp + 0x4c]
push ecx
push 0x104
push edx
push 0x46c22c
push eax
push 0x466d48
call ebx
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41255c
mov ecx, dword [0x466060]
lea edx, [esp + 0x74]
test edx, edx
mov dword [esp + 0x2c], ecx
je 0x4124fd
lea eax, [esp + 0x74]
shr eax, 0x10
jne 0x4124bf
xor eax, eax
lea ecx, [esp + 0x74]
mov ax, cx
lea ecx, [esp + 0x2c]
push eax
call fcn.004163b0
jmp 0x4124fd
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4124fd
push esi
lea ecx, [esp + 0x30]
call fcn.00402070
test eax, eax
je 0x4124fd
lea eax, [esi + 1]
cmp eax, esi
jb 0x4124fd
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 6
call fcn.00416e80
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x466064]
mov byte [esp + 0x180], 5
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41254f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41254f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
inc ebp
cmp ebp, 0x1f4
jl 0x412449
push 0xc34
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x466d38
call fcn.004159c0
mov edx, dword [0x46c224]
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x18c], 7
lea ecx, [edx + 0x280]
call fcn.00415920
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 9
push ecx
push 2
mov ecx, eax
call fcn.00415e60
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [esp + 0x44]
push eax
call fcn.00412cb0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 5
call fcn.00417030
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, eax
mov dword [esp + 0x180], 0xffffffff
mov edi, eax
je 0x4125ff
push 0
mov ecx, esi
call fcn.004184c0
add esi, 4
cmp esi, edi
jne 0x4125eb
mov esi, dword [esp + 0x18]
push esi
jmp 0x412a13
mov cl, byte [esp + 0x13]
xor ebx, ebx
mov byte [esp + 0x14], cl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x180], 0xa
xor ebp, ebp
lea edx, [esp + 0x4c]
push 0xa
push edx
push ebp
call fcn.00432f92
mov eax, dword [0x46c2d8]
add esp, 0xc
lea ecx, [esp + 0x74]
lea edx, [esp + 0x4c]
push eax
push 0x104
push ecx
push 0x46c22c
push edx
push 0x466d2c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412733
mov eax, dword [0x466060]
lea ecx, [esp + 0x74]
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x4126d4
lea edx, [esp + 0x74]
shr edx, 0x10
jne 0x4126a0
xor eax, eax
lea ecx, [esp + 0x74]
mov ax, cx
lea ecx, [esp + 0x28]
push eax
call fcn.004163b0
jmp 0x4126d4
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x4126d4
push esi
lea ecx, [esp + 0x2c]
call fcn.00402070
test eax, eax
je 0x4126d4
mov ecx, dword [esp + 0x28]
push esi
lea eax, [esp + 0x78]
inc esi
push eax
push esi
push ecx
call fcn.00410080
add esp, 0x10
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 0xb
call fcn.00416e80
mov eax, dword [esp + 0x28]
mov edx, dword [0x466064]
mov byte [esp + 0x180], 0xa
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412726
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412726
mov edx, dword [esp + 0x28]
lea eax, [edx - 0xc]
push eax
call fcn.00427e30
add esp, 4
inc ebp
cmp ebp, 0x1f4
jl 0x412628
push 0x101c
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x466d1c
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x6c]
push eax
add ecx, 0x280
mov byte [esp + 0x18c], 0xc
call fcn.00415920
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
push 2
mov byte [esp + 0x190], 0xe
call fcn.00415e60
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call esi
mov edi, dword [esp + 0x44]
push eax
mov ecx, edi
call fcn.00412cb0
push 0x1404
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x466d0c
mov byte [esp + 0x18c], 0xa
call fcn.004159c0
mov ecx, dword [0x46c224]
lea eax, [esp + 0x74]
push eax
add ecx, 0x280
mov byte [esp + 0x18c], 0xf
call fcn.00415920
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
push 2
mov byte [esp + 0x190], 0x11
call fcn.00415e60
push eax
call esi
push eax
mov ecx, edi
call fcn.00412cb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 0xa
call fcn.00417030
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, eax
mov dword [esp + 0x180], 0xffffffff
mov edi, eax
je 0x412836
push ebx
mov ecx, esi
call fcn.004184c0
add esi, 4
cmp esi, edi
jne 0x412823
mov esi, dword [esp + 0x18]
push esi
call fcn.00427e30
add esp, 4
jmp 0x412843
xor ebx, ebx
mov dl, byte [esp + 0x13]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x3c], dl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov ebx, 0x12
xor ebp, ebp
mov dword [esp + 0x180], ebx
lea eax, [esp + 0x4c]
push 0xa
push eax
push ebp
call fcn.00432f92
mov ecx, dword [0x46c2d8]
add esp, 0xc
lea edx, [esp + 0x74]
lea eax, [esp + 0x4c]
push ecx
push 0x104
push edx
push 0x46c22c
push eax
push 0x466d00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41297b
mov ecx, dword [0x466060]
lea edx, [esp + 0x74]
test edx, edx
mov dword [esp + 0x24], ecx
je 0x41291d
lea eax, [esp + 0x74]
shr eax, 0x10
jne 0x4128df
xor eax, eax
lea ecx, [esp + 0x74]
mov ax, cx
lea ecx, [esp + 0x24]
push eax
call fcn.004163b0
jmp 0x41291d
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x41291d
push esi
lea ecx, [esp + 0x28]
call fcn.00402070
test eax, eax
je 0x41291d
lea eax, [esi + 1]
cmp eax, esi
jb 0x41291d
mov edi, dword [esp + 0x24]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x188], 0x13
call fcn.00416e80
mov eax, dword [esp + 0x24]
mov ecx, dword [0x466064]
mov byte [esp + 0x180], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41296e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41296e
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
inc ebp
cmp ebp, 0x1f4
jl 0x412865
push 0x464
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x466cf4
call fcn.004159c0
mov edx, dword [0x46c224]
lea ecx, [esp + 0x70]
push ecx
mov byte [esp + 0x18c], 0x14
lea ecx, [edx + 0x280]
call fcn.00415920
lea ecx, [esp + 0x44]
mov byte [esp + 0x188], 0x16
push ecx
push 1
mov ecx, eax
call fcn.00415e60
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [esp + 0x44]
push eax
call fcn.00412cb0
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
push edx
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x188], bl
call fcn.00417130
mov eax, dword [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x188], 0xffffffff
call fcn.00417130
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00427e30
add esp, 4
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x174
ret 4