Function at 0x40e830
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
mov eax, dword [0x447044]
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.004272d0
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.004272d0
xor eax, eax
add esp, 0xc
push 0x26800
xor ecx, ecx
push esi
push 0x104a678
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.004272d0
mov edx, dword [0x1084bcc]
add esp, 0xc
mov dword [0x104a678], edx
xor eax, eax
nop
movzx ecx, word [eax + 0x435474]
mov word [eax + 0x104a67c], cx
add eax, 2
cmp cx, si
jne 0x40e900
xor eax, eax
jmp 0x40e920
movzx ecx, word [eax + 0x435474]
mov word [eax + 0x104a6a0], cx
add eax, 2
cmp cx, si
jne 0x40e920
mov dword [0x104a6c8], esi
mov dword [0x104a6cc], esi
mov dword [0x104a6d0], esi
mov dword [0x104a6d4], esi
xor eax, eax
movzx ecx, word [eax + 0x435474]
mov word [eax + 0x104a6d8], cx
add eax, 2
cmp cx, si
jne 0x40e950
mov dword [ebp - 0xb0c], 1
cmp edx, 1
jb 0x40eda9
mov esi, 0x104a908
mov eax, 4
lea edx, [ebp - 0x304]
sub esi, 0x435474
sub eax, edx
mov ebx, 0x104a930
mov dword [ebp - 0xb08], 0x104a938
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.0041fd15
mov eax, dword [ebp - 0xb14]
add esp, 0xc
push eax
push 0x143
lea ecx, [ebp - 0x304]
push ecx
push 0x435474
lea edx, [ebp - 0x18]
push edx
push 0x43d098
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041faf1
add esp, 8
test eax, eax
je 0x40ea6d
lea ecx, [ebp - 0x304]
push 0x26
push ecx
call fcn.0041faf1
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 0x40ea45
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041faf1
add esp, 8
xor ecx, ecx
mov word [eax], cx
jmp 0x40ea6f
xor edi, edi
lea edx, [ebp - 0x304]
push 0x26
push edx
call fcn.0041faf1
add esp, 8
test eax, eax
je 0x40eac5
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041faf1
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 0x40eaa0
lea ecx, [ebp - 0x304]
push 0x26
push ecx
call fcn.0041faf1
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x38]
push eax
call fcn.004217db
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.0041faf1
add esp, 8
test eax, eax
je 0x40eb35
lea edx, [ebp - 0x304]
push 0x26
push edx
call fcn.0041faf1
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 0x40eb10
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041faf1
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x58]
push edx
call fcn.004217db
add esp, 4
mov dword [ebx], eax
lea eax, [ebp - 0x304]
push 0x26
push eax
mov dword [ebx + 4], edx
call fcn.0041faf1
add esp, 8
test eax, eax
je 0x40eb99
lea ecx, [ebp - 0x304]
push 0x26
push ecx
call fcn.0041faf1
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 0x40eb73
lea eax, [ebp - 0x304]
push 0x26
push eax
call fcn.0041faf1
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x304]
push 0x26
push edx
call fcn.0041faf1
add esp, 8
test eax, eax
jne 0x40ebd1
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 0x40ebc0
jmp 0x40ec30
mov eax, 0x435474
jmp 0x40ebe0
movzx ecx, word [eax]
mov word [esi + eax + 0x38], cx
add eax, 2
cmp cx, di
jne 0x40ebe0
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, 0x435474
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, di
jne 0x40ec05
mov eax, 0x435474
lea esp, [esp]
movzx ecx, word [eax]
mov word [esi + eax - 0x24], cx
add eax, 2
cmp cx, di
jne 0x40ec20
lea ecx, [ebx - 0x4c]
call fcn.00401100
test al, al
je 0x40ec48
lea ecx, [ebx - 0x28]
call fcn.00401100
test al, al
jne 0x40eca0
mov eax, 0x435474
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [esi + eax + 0x38], cx
add eax, 2
cmp cx, di
jne 0x40ec50
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, 0x435474
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, di
jne 0x40ec75
mov eax, 0x435474
lea esp, [esp]
movzx ecx, word [eax]
mov word [esi + eax - 0x24], cx
add eax, 2
cmp cx, di
jne 0x40ec90
lea ecx, [ebx - 0x4c]
call fcn.00401210
cmp eax, dword [ebx]
jne 0x40ecca
cmp edx, dword [ebx + 4]
jne 0x40ecca
lea ecx, [ebx - 0x28]
call fcn.00401210
mov ecx, dword [ebp - 0xb08]
cmp eax, dword [ecx]
jne 0x40ecca
mov eax, ecx
cmp edx, dword [eax + 4]
je 0x40ed20
mov eax, 0x435474
nop
movzx ecx, word [eax]
mov word [esi + eax + 0x38], cx
add eax, 2
cmp cx, di
jne 0x40ecd0
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, 0x435474
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, di
jne 0x40ecf5
mov eax, 0x435474
lea esp, [esp]
movzx ecx, word [eax]
mov word [esi + eax - 0x24], cx
add eax, 2
cmp cx, di
jne 0x40ed10
cmp dword [0x1086df0], edi
je 0x40ed7a
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.004042f0
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 [0x1084bcc]
jbe 0x40e9a6
push 0x220
push 0
push 0x1076e88
call fcn.004272d0
add esp, 0xc
push 0x1076e88
call fcn.0040db50
add esp, 4
cmp eax, 1
jne 0x40ef1c
mov eax, dword [0x1076e88]
test eax, eax
jle 0x40ef15
mov ecx, 1
cmp eax, ecx
jl 0x40ee39
mov ebx, 0x1076ec0
mov edi, edi
mov esi, 1
cmp dword [0x104a678], esi
jb 0x40ee31
mov edx, dword [ebx]
mov edi, dword [ebx + 4]
mov eax, 0x104a938
cmp edi, dword [eax - 4]
jl 0x40ee1e
jg 0x40ee13
cmp edx, dword [eax - 8]
jb 0x40ee1e
cmp edi, dword [eax + 4]
jl 0x40ee5b
jg 0x40ee1e
cmp edx, dword [eax]
jbe 0x40ee5b
inc esi
add eax, 0x268
cmp esi, dword [0x104a678]
jbe 0x40ee07
mov eax, dword [0x1076e88]
inc ecx
add ebx, 0x20
cmp ecx, eax
jle 0x40edf0
push 0x108ad50
push 0x43d1b8
push 0x108a510
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x108a510
jmp 0x40ef21
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 + 0x1076ea4]
xor edx, edx
mov word [ebp - 0x7c], dx
mov edx, dword [eax + 0x1076ea0]
push ecx
push edx
call fcn.00401440
mov eax, esi
imul eax, eax, 0x268
add esp, 0xc
lea edi, [eax + 0x104a6d8]
push edi
lea ecx, [eax + 0x104a6a0]
push ecx
lea edx, [eax + 0x104a67c]
push edx
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x43d130
push 0x108a510
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0x108a510
call fcn.004042f0
mov ecx, 0x1085bd8
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 0x40eef0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041f53e
mov esp, ebp
pop ebp
ret
push 0x43d208
jmp 0x40ef21
push 0x43d250
call fcn.004042f0
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041f53e
mov esp, ebp
pop ebp
ret