Function at 0x4030e0
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 0x45b688
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 0x4031a6
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 0x4031cb
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 0x403377
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 0x403210
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403236
test dx, dx
je 0x403232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403236
add eax, 4
add ecx, 4
test dx, dx
jne 0x403210
xor eax, eax
jmp 0x40323b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x403356
push esi
call fcn.004245de
add esp, 4
test eax, eax
je 0x403262
cmp eax, dword [esp + 0x84]
je 0x4032ff
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 0x4032d1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4032c4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4032c4
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4032bb
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 0x4032d1
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 0x403200
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403200
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 0x403324
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 0x40334c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4038d9
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 0x403377
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 str.MGlobalSW
call edi
test eax, eax
jne 0x40341d
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 0x4033ee
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 0x403416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4038d9
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc4]
push eax
push 0
push str.ModCount
push str.ModSwitch
mov dword [esp + 0x24], 1
call edi
mov ebp, eax
xor esi, esi
test ebp, ebp
jbe 0x403888
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea edx, [esp + 0x48]
push str.ModSwitch__d
push edx
call ebx
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc4]
add esp, 0xc
push eax
push 0
push str.ModID
lea ecx, [esp + 0x50]
push ecx
call edi
cmp eax, dword [esp + 0x84]
je 0x40348c
inc esi
cmp esi, ebp
jb 0x403450
jmp 0x403888
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 0x4034b8
mov dword [esp + 0x14], 0
jmp 0x4034c1
cmp eax, 1
jne 0x4034c1
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 0x403504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4037f8
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 0x4035a8
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 0x4035dd
test dx, dx
je 0x4035d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4035dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4035b7
xor eax, eax
jmp 0x4035e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4037a7
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 0x40364f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40363e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40363e
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x403635
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 0x40364f
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 0x403674
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 0x403775
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 0x4036d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40377f
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 0x403747
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x403736
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403736
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40372d
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 0x403747
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 0x4035b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4035b0
push 0x80004005
call fcn.00401960
mov eax, dword [esp + 0x28]
cmp eax, 2
jne 0x403792
mov dword [esp + 0x14], 1
jmp 0x40379f
cmp eax, 1
jne 0x40379f
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 0x4037c8
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 0x4037ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], 0
jne 0x403888
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 0x403863
mov eax, dword [esp + 0x28]
cmp eax, 2
jne 0x403856
mov dword [esp + 0x14], 1
jmp 0x403863
cmp eax, 1
jne 0x403863
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 0x403888
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 0x4038ad
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 0x4038d5
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