Function at 0x49fec0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x55f43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x824], ecx
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x408]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
mov dword [ebp - 0x414], eax
mov edx, dword [ebp - 0x414]
sub edx, 1
mov dword [ebp - 0x418], edx
jmp 0x49ff22
mov eax, dword [ebp - 0x418]
sub eax, 1
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jl 0x49ff42
mov ecx, dword [ebp - 0x418]
movsx edx, byte [ebp + ecx - 0x408]
cmp edx, 0x5c
jne 0x49ff40
jmp 0x49ff42
jmp 0x49ff13
push 0x400
push 0
lea eax, [ebp - 0x820]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x418]
push ecx
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x820]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x532e20
lea ecx, [ebp - 0x820]
push ecx
call fcn.004a0bc0
add esp, 8
push 0x400
push 0
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x820]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push 0x532e2c
push 0x532e30
push 0x532e40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 0x41c], eax
push 0x12
push 0
mov eax, dword [ebp - 0x824]
add eax, 0x768
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x40c], 1
jmp 0x4a0010
mov ecx, dword [ebp - 0x40c]
add ecx, 1
mov dword [ebp - 0x40c], ecx
cmp dword [ebp - 0x40c], 0x12
jg 0x4a0739
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x828], edx
mov eax, dword [ebp - 0x828]
sub eax, 1
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 0x11
ja case.0x4a004b.4
mov ecx, dword [ebp - 0x828]
jmp dword [ecx*4 + 0x4a07c4]
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a0097
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x678
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x768], 1
jmp 0x4a00c2
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x678
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x768], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x41c]
je 0x4a010c
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x760]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x604
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x769], 1
jmp 0x4a0137
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x764]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x604
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x769], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a0181
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x108
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x76a], 1
jmp 0x4a01ac
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x108
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x76a], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x41c]
je 0x4a01f6
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x760]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x6ec
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x76b], 1
jmp 0x4a0221
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x764]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x6ec
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x76b], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a0270
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x34c
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x76d], 1
jmp 0x4a029b
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x34c
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x76d], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x41c]
je 0x4a02e5
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x760]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x1f0
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x76e], 1
jmp 0x4a0310
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x764]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x1f0
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x76e], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a035a
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x94
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x76f], 1
jmp 0x4a0385
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x94
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x76f], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x41c]
je 0x4a03cf
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x760]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x17c
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x770], 1
jmp 0x4a03fa
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x764]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x17c
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x770], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a0444
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x2d8
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x771], 1
jmp 0x4a046f
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x2d8
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x771], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x41c]
je 0x4a04be
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x760]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x590
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x773], 1
jmp 0x4a04e9
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x764]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x590
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x773], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a0533
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x51c
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x774], 1
jmp 0x4a055e
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x51c
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x774], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x41c]
je 0x4a05ad
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x760]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x264
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x776], 1
jmp 0x4a05d8
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x764]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x264
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x776], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a0622
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x4a8
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x777], 1
jmp 0x4a064d
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x4a8
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x777], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x41c]
je 0x4a0697
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x760]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x434
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x778], 1
jmp 0x4a06c2
mov ecx, dword [ebp - 0x824]
mov edx, dword [ecx + 0x764]
push edx
mov ecx, dword [ebp - 0x824]
add ecx, 0x434
call fcn.004a0c20
mov eax, dword [ebp - 0x824]
mov byte [eax + 0x778], 0
jmp case.0x4a004b.4
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x41c]
je 0x4a0709
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x760]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x3c0
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x779], 1
jmp case.0x4a004b.4
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x764]
push ecx
mov ecx, dword [ebp - 0x824]
add ecx, 0x3c0
call fcn.004a0c20
mov edx, dword [ebp - 0x824]
mov byte [edx + 0x779], 0
jmp 0x4a0001
lea eax, [ebp - 0x820]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push 0x532e50
push 0x532e54
push 0x532e64
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x4a079b
push 0
push 0x454
mov ecx, dword [ebp - 0x824]
call sub.mfc100.dll_Ordinal_4785
mov ecx, eax
call fcn.0042af90
jmp 0x4a07b4
push 1
push 0x454
mov ecx, dword [ebp - 0x824]
call sub.mfc100.dll_Ordinal_4785
mov ecx, eax
call fcn.0042af90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501b98
mov esp, ebp
pop ebp
ret