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

Disassembly:
push 0xffffffffffffffff
push 0x44fa48
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [0x46ecec]
mov ebp, dword [esp + 0x80]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
mov dword [esp + 0x24], ebp
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x78], 0
mov ecx, dword [ebp + 0x98]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x20]
push edx
call eax
mov byte [esp + 0x78], 1
mov ecx, dword [ebp + 0xc4]
mov eax, dword [eax]
push ecx
push 0x45b7b0
push eax
lea ecx, [esp + 0x34]
push 0x45b5fc
push ecx
call fcn.00414180
add esp, 0x14
lea edi, [esp + 0x1c]
mov byte [esp + 0x78], 2
call fcn.004050a0
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402986
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x402b57
push 0x45b608
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x38]
mov dword [esp + 0x38], 0
call fcn.00404b40
mov byte [esp + 0x78], 3
nop
mov esi, dword [esp + 0x14]
mov ecx, 0x45b7b0
mov eax, esi
jmp 0x4029f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402a16
test dx, dx
je 0x402a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402a16
add eax, 4
add ecx, 4
test dx, dx
jne 0x4029f0
xor eax, eax
jmp 0x402a1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x402b36
push esi
call fcn.004245de
add esp, 4
test eax, eax
je 0x402a42
cmp eax, dword [esp + 0x84]
je 0x402adf
push 0x45b608
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x38]
call fcn.00404b40
mov byte [esp + 0x78], 4
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x402ab1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402aa4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402aa4
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402a9b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x402ab1
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004053c0
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4029e0
mov byte [esp + 0x78], 0
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 0x402b04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4030b9
lea eax, [esi - 0x10]
mov byte [esp + 0x78], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x84]
push ecx
push 0x45b440
lea edi, [esp + 0x34]
mov byte [esp + 0x80], 5
call fcn.004018c0
mov eax, dword [ebp + 0xd0]
mov esi, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 8
push eax
push 1
push esi
push 0x45b60c
call edi
test eax, eax
jne 0x402bfd
mov byte [esp + 0x78], al
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4030b9
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc4]
push eax
push 0
push str.ProjCount
push str.ProjSwitch
mov dword [esp + 0x24], 1
call edi
mov ebp, eax
xor esi, esi
test ebp, ebp
jbe 0x403068
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea edx, [esp + 0x48]
push str.ProjSwitch__d
push edx
call ebx
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc4]
add esp, 0xc
push eax
push 0
push str.ProjID
lea ecx, [esp + 0x50]
push ecx
call edi
cmp eax, dword [esp + 0x84]
je 0x402c6c
inc esi
cmp esi, ebp
jb 0x402c30
jmp 0x403068
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xc4]
push eax
push 1
push str.SType
lea edx, [esp + 0x50]
push edx
call edi
mov dword [esp + 0x28], eax
cmp eax, 2
jne 0x402c98
mov dword [esp + 0x14], 0
jmp 0x402ca1
cmp eax, 1
jne 0x402ca1
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x24], 0
call eax
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
mov eax, dword [esp + 0x30]
setg bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402ce4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x402fd8
mov ecx, esi
mov eax, dword [ecx + 0xc4]
push eax
push 0x45b7b0
push 0x45b684
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00414180
add esp, 0x14
mov byte [esp + 0x78], 6
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x45b608
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
mov byte [esp + 0x80], 7
push edx
lea ebx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
call fcn.00404b40
lea edi, [esp + 0x18]
mov byte [esp + 0x78], 8
call fcn.004050a0
mov byte [esp + 0x78], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov ecx, 0x45b7b0
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402dbd
test dx, dx
je 0x402db9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402dbd
add eax, 4
add ecx, 4
test dx, dx
jne 0x402d97
xor eax, eax
jmp 0x402dc2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x402f87
lea esi, [esp + 0x38]
call fcn.00423620
mov byte [esp + 0x78], 9
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x402e2f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402e1e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402e1e
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402e15
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x402e2f
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004053c0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x78], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
call edx
mov byte [esp + 0x78], 0xa
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x402f55
push eax
push edi
call fcn.004248c8
add esp, 8
test eax, eax
mov byte [esp + 0x78], 7
mov eax, dword [esp + 0x3c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x402f5f
push 0x45b608
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ebx, [esp + 0x3c]
call fcn.00404b40
mov byte [esp + 0x78], 0xb
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x402f27
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402f16
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402f16
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402f0d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x402f27
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004053c0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x78], 7
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402d90
push 0x80004005
call fcn.00401960
mov eax, dword [esp + 0x28]
cmp eax, 2
jne 0x402f72
mov dword [esp + 0x14], 1
jmp 0x402f7f
cmp eax, 1
jne 0x402f7f
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x78], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], 0
jne 0x403068
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xc4]
push eax
push 0x45b7b0
push 0x45b7ac
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00414180
add esp, 0x14
mov byte [esp + 0x78], 0xc
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00414270
add esp, 8
test eax, eax
je 0x403043
mov eax, dword [esp + 0x28]
cmp eax, 2
jne 0x403036
mov dword [esp + 0x14], 1
jmp 0x403043
cmp eax, 1
jne 0x403043
mov dword [esp + 0x14], 0
mov byte [esp + 0x78], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40308d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0042404d
add esp, 0x68
ret 8