Function at 0x50ad94
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x3ec], eax
mov eax, str.metadata
lea ecx, [ebp - 0x3e8]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov al, byte [eax + 8]
mov byte [ecx + 8], al
mov eax, str.keyorders
lea ecx, [ebp - 0x3dc]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ax, word [eax + 8]
mov word [ecx + 8], ax
mov eax, str.labels
lea ecx, [ebp - 8]
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
mov al, byte [0x533ce0]
mov byte [ebp - 0x1ec], al
mov dword [ebp - 0x36c], 0
push 0x4c
push 0
lea eax, [ebp - 0x260]
push eax
call fcn.005236e4
add esp, 0xc
mov dword [ebp - 0x260], 0x4c
mov dword [ebp - 0x234], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x25c], eax
push 0x40
lea eax, [ebp - 0xd4]
push eax
push 0x253e
mov eax, dword [0x533640]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x50ae87
mov dword [ebp - 0x36c], 0x2711
jmp 0x50b874
mov dword [ebp - 0x1f0], 0
jmp 0x50ae9c
inc dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f0]
movsx eax, byte [ebp + eax - 0xd4]
test eax, eax
je 0x50aedc
mov eax, dword [ebp - 0x1f0]
movsx eax, byte [ebp + eax - 0xd4]
cmp eax, 0x7c
jne 0x50aed7
mov eax, dword [ebp - 0x1f0]
mov byte [ebp + eax - 0xd4], 0
jmp 0x50ae96
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x248], 1
mov byte [ebp - 0x4f0], 0
lea eax, [ebp - 0x4f0]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0x104
mov eax, dword [0x533640]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x218], str.CTCOPENOPT
mov dword [ebp - 0x22c], 0x1850
lea eax, [ebp - 0x260]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x50b858
push 0
push 0
push 0x184
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x4f0]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1ec]
push eax
push str.numLabels
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50af92
mov dword [ebp - 0x36c], 0x2afa
jmp 0x50b874
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x1d8]
push eax
push 0
push 0
lea eax, [ebp - 0x4f0]
push eax
call fcn.0052344e
add esp, 0x14
lea eax, [ebp - 0x4f0]
push eax
mov eax, dword [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
call fcn.00523124
add esp, 4
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0xc], 0
mov dword [ebp - 0x1f0], 0
jmp 0x50aff8
inc dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f0]
cmp dword [ebp - 0x264], eax
jle 0x50b139
mov eax, dword [ebp - 0x1f0]
inc eax
push eax
push str.label
push 0x533d04
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4f0]
push eax
push 0x21
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50b06b
mov dword [ebp - 0x36c], 0x2afa
jmp 0x50b874
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
push 0x1a2
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x50b0f5
push 0x40
lea eax, [ebp - 0x94]
push eax
push 0x2539
mov eax, dword [0x533640]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x50b0bd
mov dword [ebp - 0x36c], 0x2711
jmp 0x50b874
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x3cc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x3cc]
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x50b134
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
push 0x1a2
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x50b11c
mov eax, dword [ebp + 0x1c]
inc dword [eax + 0xc]
lea eax, [ebp - 0x214]
push eax
push 0
push 0x180
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x50aff2
push 0
push 0x7d1
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x7d2
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0
push 0x18b
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
sbb eax, eax
inc eax
push eax
push 0x7d3
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0
push 0x18b
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x1c]
xor edx, edx
cmp eax, dword [ecx + 0xc]
setg dl
push edx
push 0x7d4
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x4f0]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1ec]
push eax
push str.numKeys
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50b20b
mov dword [ebp - 0x36c], 0x2afa
jmp 0x50b874
lea eax, [ebp - 0x1c]
push eax
call fcn.00523124
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4f4], eax
jmp 0x50b839
mov dword [ebp - 0x1f0], 0
jmp 0x50b23d
inc dword [ebp - 0x1f0]
cmp dword [ebp - 0x1f0], 3
jge 0x50b2b3
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x1f0], 0
je 0x50b2ae
push 0
mov eax, dword [ebp - 0x1f0]
add eax, 0x7df
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50b237
push 3
mov eax, dword [ebp + 0x18]
push eax
call fcn.00509f60
add esp, 8
jmp 0x50b858
push 1
push str.type
push 0x533d1c
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4f0]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50b31b
mov dword [ebp - 0x36c], 0x2afa
jmp 0x50b874
push str.SPECIAL
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x50b495
push 3
mov eax, dword [ebp + 0x18]
push eax
call fcn.00509f60
add esp, 8
push 1
push 0x533d2c
push 0x533d30
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4f0]
push eax
push 0x21
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50b398
mov dword [ebp - 0x36c], 0x2afa
jmp 0x50b874
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
push 0x158
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xd8], eax
push 0
mov eax, dword [ebp - 0xd8]
push eax
push 0x14e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x1f0], 0
jmp 0x50b3e7
inc dword [ebp - 0x1f0]
cmp dword [ebp - 0x1f0], 3
jge 0x50b481
cmp dword [ebp - 0x1f0], 0
je 0x50b441
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [ebp - 0x1f0]
add eax, 0x7df
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50b460
push 1
mov eax, dword [ebp - 0x1f0]
add eax, 0x7df
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x50b3e1
mov eax, dword [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
jmp 0x50b88c
mov dword [ebp - 0x1f0], 1
jmp 0x50b4aa
inc dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f0]
cmp dword [ebp - 0x54], eax
jl 0x50b75b
mov eax, dword [ebp - 0x1f0]
push eax
push 0x533d38
push 0x533d3c
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4f0]
push eax
push 0x21
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50b51c
mov dword [ebp - 0x36c], 0x2afa
jmp 0x50b874
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
push 0x158
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0xffffffff
jne 0x50b5ea
push 0x40
lea eax, [ebp - 0x94]
push eax
push 0x253a
mov eax, dword [0x533640]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x50b582
mov dword [ebp - 0x36c], 0x2711
jmp 0x50b874
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x3cc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x3cc]
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 4
sub eax, dword [ebp - 0x1f0]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.00509f60
add esp, 8
mov eax, dword [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x36c]
jmp 0x50b88c
push 0
mov eax, dword [ebp - 0xd8]
push eax
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov eax, dword [ebp - 0x1f0]
add eax, 0x7df
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x1f0]
push eax
push str.order
push str._s_d
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4f0]
push eax
push 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50b6b7
mov dword [ebp - 0x36c], 0x2afa
jmp 0x50b874
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
push 0x158
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x268], eax
push 0
mov eax, dword [ebp - 0x268]
push eax
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x1f0]
cmp dword [ebp - 0x54], eax
je 0x50b756
push 1
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
push eax
call fcn.00517d51
add esp, 4
push 1
mov eax, dword [ebp - 0x1f0]
add eax, 0x7e0
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50b4a4
dec dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x3d0], eax
jmp 0x50b778
inc dword [ebp - 0x1f0]
cmp dword [ebp - 0x1f0], 3
jge 0x50b82f
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x3d0]
sub eax, dword [ebp - 0x1f0]
cmp eax, 1
sbb eax, eax
neg eax
push eax
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x3d0]
sub eax, dword [ebp - 0x1f0]
cmp eax, 1
sbb eax, eax
neg eax
push eax
mov eax, dword [ebp - 0x1f0]
add eax, 0x7df
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50b772
jmp 0x50b858
cmp dword [ebp - 0x4f4], 0
je 0x50b228
cmp dword [ebp - 0x4f4], 1
je 0x50b2c6
jmp 0x50b495
call sub.comdlg32.dll_CommDlgExtendedError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50b874
mov dword [ebp - 0x36c], 0x2afb
mov eax, dword [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x36c]
jmp 0x50b88c
pop edi
pop esi
pop ebx
leave
ret