Function at 0x40c480
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x7fe
xor esi, esi
lea edx, [ebp - 0xb02]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0xb14], eax
mov word [ebp - 0xb04], cx
call fcn.004238b0
add esp, 0xc
xor eax, eax
push 0x286
lea edx, [ebp - 0x302]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov word [ebp - 0x304], cx
call fcn.004238b0
xor eax, eax
add esp, 0xc
push 0x26800
xor ecx, ecx
push esi
push 0xbf9c20
mov word [ebp - 0x58], ax
mov dword [ebp - 0x56], eax
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov word [ebp - 0x3a], ax
mov word [ebp - 0x38], cx
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], ax
call fcn.004238b0
mov edx, dword [0xc33558]
add esp, 0xc
mov dword [0xbf9c20], edx
xor eax, eax
nop
movzx ecx, word [eax + 0x4321e4]
mov word [eax + 0xbf9c24], cx
add eax, 2
cmp cx, si
jne 0x40c550
xor eax, eax
jmp 0x40c570
movzx ecx, word [eax + 0x4321e4]
mov word [eax + 0xbf9c48], cx
add eax, 2
cmp cx, si
jne 0x40c570
mov dword [0xbf9c70], esi
mov dword [0xbf9c74], esi
mov dword [0xbf9c78], esi
mov dword [0xbf9c7c], esi
xor eax, eax
movzx ecx, word [eax + 0x4321e4]
mov word [eax + 0xbf9c80], cx
add eax, 2
cmp cx, si
jne 0x40c5a0
mov dword [ebp - 0xb0c], 1
cmp edx, 1
jb 0x40c9f9
mov esi, 0xbf9eb0
mov eax, 4
lea edx, [ebp - 0x304]
sub esi, 0x4321e4
sub eax, edx
mov ebx, 0xbf9ed8
mov dword [ebp - 0xb08], 0xbf9ee0
mov dword [ebp - 0xb10], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0xa2
lea edi, [ebp - 0x304]
rep stosd dword es:[edi], eax
xor eax, eax
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or eax, ecx
push 0xa
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xb0c]
push edx
push eax
mov dword [ebx - 0x50], eax
call fcn.0041c4b5
mov eax, dword [ebp - 0xb14]
add esp, 0xc
push eax
push 0x143
lea ecx, [ebp - 0x304]
push ecx
push 0x4321e4
lea edx, [ebp - 0x18]
push edx
push 0x4386c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041c291
add esp, 8
test eax, eax
je 0x40c6bd
lea ecx, [ebp - 0x304]
push 0x26
push ecx
call fcn.0041c291
add eax, 2
mov edx, ebx
add esp, 8
sub edx, eax
xor edi, edi
movzx ecx, word [eax]
mov word [edx + eax + 0x10], cx
add eax, 2
cmp cx, di
jne 0x40c695
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041c291
add esp, 8
xor ecx, ecx
mov word [eax], cx
jmp 0x40c6bf
xor edi, edi
lea edx, [ebp - 0x304]
push 0x26
push edx
call fcn.0041c291
add esp, 8
test eax, eax
je 0x40c715
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041c291
add eax, 2
lea edx, [ebp - 0x38]
add esp, 8
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x40c6f0
lea ecx, [ebp - 0x304]
push 0x26
push ecx
call fcn.0041c291
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x38]
push eax
call fcn.0041dd6e
mov ecx, dword [ebp - 0xb08]
add esp, 4
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea ecx, [ebp - 0x304]
push 0x26
push ecx
call fcn.0041c291
add esp, 8
test eax, eax
je 0x40c785
lea edx, [ebp - 0x304]
push 0x26
push edx
call fcn.0041c291
add eax, 2
lea edx, [ebp - 0x58]
add esp, 8
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x40c760
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041c291
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x58]
push edx
call fcn.0041dd6e
add esp, 4
mov dword [ebx], eax
lea eax, [ebp - 0x304]
push 0x26
push eax
mov dword [ebx + 4], edx
call fcn.0041c291
add esp, 8
test eax, eax
je 0x40c7e9
lea ecx, [ebp - 0x304]
push 0x26
push ecx
call fcn.0041c291
add eax, 2
mov edx, ebx
add esp, 8
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax - 0x28], cx
add eax, 2
cmp cx, di
jne 0x40c7c3
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041c291
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x304]
push 0x26
push edx
call fcn.0041c291
add esp, 8
test eax, eax
jne 0x40c821
mov ecx, dword [ebp - 0xb10]
lea eax, [ebp - 0x304]
lea edx, [ebx + ecx - 0x50]
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x40c810
jmp 0x40c880
mov eax, 0x4321e4
jmp 0x40c830
movzx ecx, word [eax]
mov word [esi + eax + 0x38], cx
add eax, 2
cmp cx, di
jne 0x40c830
mov eax, dword [ebp - 0xb08]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov eax, 0x4321e4
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, di
jne 0x40c855
mov eax, 0x4321e4
lea esp, [esp]
movzx ecx, word [eax]
mov word [esi + eax - 0x24], cx
add eax, 2
cmp cx, di
jne 0x40c870
lea ecx, [ebx - 0x4c]
call fcn.00401100
test al, al
je 0x40c898
lea ecx, [ebx - 0x28]
call fcn.00401100
test al, al
jne 0x40c8f0
mov eax, 0x4321e4
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [esi + eax + 0x38], cx
add eax, 2
cmp cx, di
jne 0x40c8a0
mov eax, dword [ebp - 0xb08]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov eax, 0x4321e4
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, di
jne 0x40c8c5
mov eax, 0x4321e4
lea esp, [esp]
movzx ecx, word [eax]
mov word [esi + eax - 0x24], cx
add eax, 2
cmp cx, di
jne 0x40c8e0
lea ecx, [ebx - 0x4c]
call fcn.00401210
cmp eax, dword [ebx]
jne 0x40c91a
cmp edx, dword [ebx + 4]
jne 0x40c91a
lea ecx, [ebx - 0x28]
call fcn.00401210
mov ecx, dword [ebp - 0xb08]
cmp eax, dword [ecx]
jne 0x40c91a
mov eax, ecx
cmp edx, dword [eax + 4]
je 0x40c970
mov eax, 0x4321e4
nop
movzx ecx, word [eax]
mov word [esi + eax + 0x38], cx
add eax, 2
cmp cx, di
jne 0x40c920
mov eax, dword [ebp - 0xb08]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov eax, 0x4321e4
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, di
jne 0x40c945
mov eax, 0x4321e4
lea esp, [esp]
movzx ecx, word [eax]
mov word [esi + eax - 0x24], cx
add eax, 2
cmp cx, di
jne 0x40c960
cmp dword [0xc3577c], edi
je 0x40c9ca
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x200
lea edi, [ebp - 0xb04]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebx - 0x50]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebx - 0x28]
push eax
lea eax, [ebx - 0x4c]
push eax
push ecx
lea edx, [ebp - 0xb04]
push str._Debug__GetDispatchRangeList___u___s___s____s___s____s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xb04]
push eax
call fcn.00403790
add esp, 0x24
mov eax, dword [ebp - 0xb0c]
add dword [ebp - 0xb08], 0x268
inc eax
add ebx, 0x268
add esi, 0x268
mov dword [ebp - 0xb0c], eax
cmp eax, dword [0xc33558]
jbe 0x40c5f6
push 0x220
push 0
push 0xc26420
call fcn.004238b0
add esp, 0xc
push 0xc26420
call fcn.0040b7a0
add esp, 4
cmp eax, 1
jne 0x40cb6c
mov eax, dword [0xc26420]
test eax, eax
jle 0x40cb65
mov ecx, 1
cmp eax, ecx
jl 0x40ca89
mov ebx, 0xc26458
mov edi, edi
mov esi, 1
cmp dword [0xbf9c20], esi
jb 0x40ca81
mov edx, dword [ebx]
mov edi, dword [ebx + 4]
mov eax, 0xbf9ee0
cmp edi, dword [eax - 4]
jl 0x40ca6e
jg 0x40ca63
cmp edx, dword [eax - 8]
jb 0x40ca6e
cmp edi, dword [eax + 4]
jl 0x40caab
jg 0x40ca6e
cmp edx, dword [eax]
jbe 0x40caab
inc esi
add eax, 0x268
cmp esi, dword [0xbf9c20]
jbe 0x40ca57
mov eax, dword [0xc26420]
inc ecx
add ebx, 0x20
cmp ecx, eax
jle 0x40ca40
push 0xc396d8
push 0x4387e0
push 0xc38e98
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xc38e98
jmp 0x40cb71
xor eax, eax
mov dword [ebp - 0x7a], eax
mov dword [ebp - 0x76], eax
mov dword [ebp - 0x72], eax
mov dword [ebp - 0x6e], eax
mov dword [ebp - 0x6a], eax
mov dword [ebp - 0x66], eax
mov dword [ebp - 0x62], eax
mov dword [ebp - 0x5e], eax
mov word [ebp - 0x5a], ax
lea eax, [ebp - 0x7c]
push eax
shl ecx, 5
mov eax, ecx
mov ecx, dword [eax + 0xc2643c]
xor edx, edx
mov word [ebp - 0x7c], dx
mov edx, dword [eax + 0xc26438]
push ecx
push edx
call fcn.00401440
mov eax, esi
imul eax, eax, 0x268
add esp, 0xc
lea edi, [eax + 0xbf9c80]
push edi
lea ecx, [eax + 0xbf9c48]
push ecx
lea edx, [eax + 0xbf9c24]
push edx
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x438758
push 0xc38e98
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0xc38e98
call fcn.00403790
mov ecx, 0xc34560
add esp, 4
mov eax, edi
sub ecx, edi
lea esp, [esp]
movzx edx, word [eax]
mov word [eax + ecx], dx
add eax, 2
test dx, dx
jne 0x40cb40
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x438830
jmp 0x40cb71
push 0x438878
call fcn.00403790
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret