Function at 0x4214e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ab58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
call fcn.0041f180
mov esi, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, esp
mov dword [ebp - 0x4c], esp
push ecx
push esi
push eax
mov ecx, ebx
call fcn.00421bb0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push edx
push eax
lea ecx, [ebp - 0x30]
push esi
push ecx
mov ecx, ebx
call fcn.00421ca0
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x64]
push edx
push eax
push ecx
lea edx, [ebp - 0x30]
xor edi, edi
mov ecx, esp
mov dword [ebp + 0x10], esp
push edx
mov dword [ebp - 4], edi
call fcn.0045822c
mov ax, word [ebx + 0x20]
mov cl, byte [ebx + 0x23]
push eax
push ecx
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x49770c
call fcn.0045822c
lea ecx, [ebx + 0x100]
mov byte [ebp - 4], 0
call fcn.00428e40
xor eax, eax
mov ax, word [ebx + 0x16e]
mov edx, eax
and edx, 0xfffffff8
cmp edx, 0x400
jle 0x42159a
shr eax, 3
mov ecx, eax
jmp 0x42159f
mov ecx, 0x80
mov eax, 0x800
push edi
cdq
idiv ecx
mov cl, byte [ebp - 0x62]
mov dl, byte [ebx + 0x592c]
mov byte [ebp - 0x12], cl
mov ecx, ebx
mov byte [ebp + 0x10], al
mov al, byte [ebp - 0x63]
push edx
mov byte [ebp - 0x13], al
call fcn.00433c60
mov byte [ebp - 0x11], al
mov eax, dword [ebp + 0x1c]
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x4c], ecx
mov ecx, eax
shr ecx, 1
and ecx, 1
shr eax, 2
mov dword [ebp - 0x2c], ecx
and eax, 1
mov ecx, ebx
mov dword [ebp - 0x48], eax
call fcn.00422d50
push ecx
mov ecx, esp
mov dword [ebp + 0x1c], esp
push 0x4970cc
call sub.MFC42.DLL_CString::CString_2
push edi
mov ecx, ebx
call fcn.00424a70
mov byte [ebp - 0x18], al
mov dword [ebp + 0x1c], edi
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
and edi, 0xff
inc edi
shl edi, 9
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x1c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push ecx
lea edx, [ebp - 0x1c]
push esi
push edx
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00422140
test eax, eax
jne 0x421679
lea eax, [ebp - 0x34]
push 0x48d780
push eax
mov dword [ebp - 0x34], 0x40100
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push esi
push ecx
push edx
mov ecx, ebx
call fcn.00422280
push 0
push esi
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.0045822c
mov ecx, ebx
call fcn.00425250
mov al, byte [ebx + 0x98]
mov byte [ebp + 0x17], 0x10
test al, al
jne 0x4216bd
mov eax, dword [ebx + 0x110]
test eax, eax
je 0x4216c1
mov byte [ebp + 0x17], 0x11
mov ax, word [ebx + 0x16e]
movzx si, byte [ebx + 0x172]
sub ax, 0xa
mov dword [ebp - 0x3c], eax
mov eax, esi
imul eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov al, byte [ebp + 0x18]
test al, 0x80
je 0x421709
mov al, byte [ebx + 0x16d]
cmp al, 0x40
mov byte [ebp + 0x1b], al
jbe 0x42170d
lea ecx, [ebp - 0x38]
push 0x48d780
push ecx
mov dword [ebp - 0x38], 0xf1000
call sub.MSVCRT.dll__CxxThrowException
mov byte [ebp + 0x1b], 0x40
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [ebx + 0x16d]
and ecx, 0xff
lea edi, [ebp - 0x84]
mov dword [ebp - 0x20], 0
lea eax, [edx + ecx - 1]
cdq
idiv ecx
mov ecx, 8
mov byte [ebp + 0x13], al
xor eax, eax
rep stosd dword es:[edi], eax
xor dl, dl
mov al, byte [ebp + 0x13]
mov byte [ebp - 0x24], dl
cmp dl, al
jae 0x42179d
movzx cx, byte [ebp - 0x11]
xor ax, ax
mov al, dl
imul eax, ecx
movzx cx, byte [ebp - 0x12]
imul eax, ecx
movzx cx, byte [ebp - 0x13]
imul eax, ecx
mov ecx, dword [ebp - 0x24]
imul eax, esi
and ecx, 0xff
lea edi, [eax + 1]
shl ecx, 3
mov word [ebp + ecx - 0x84], ax
mov word [ebp + ecx - 0x82], di
lea edi, [eax + 2]
add eax, 3
mov word [ebp + ecx - 0x80], di
mov word [ebp + ecx - 0x7e], ax
inc dl
jmp 0x421740
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x1c]
and esi, 0xff
mov dl, byte [ebp + 0x17]
shl esi, 9
add esi, ecx
mov ecx, 0x80
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0x1b]
mov ecx, dword [ebp - 0x28]
mov byte [esi], dl
mov byte [esi + 2], al
mov eax, 0x400
mov edi, ecx
cdq
and edi, 0xffff
idiv edi
cmp eax, 8
jle 0x4217e1
mov eax, 8
xor edx, edx
mov byte [esi + 3], al
mov dl, ch
mov byte [esi + 4], dl
mov byte [esi + 5], cl
mov al, byte [ebx + 0x16c]
xor edx, edx
mov byte [esi + 6], al
mov byte [esi + 7], 0
mov cl, byte [ebx + 0x172]
mov byte [esi + 8], cl
mov byte [esi + 9], 0
mov dl, byte [ebx + 0x16f]
xor ecx, ecx
mov byte [esi + 0xa], dl
mov al, byte [ebx + 0x16e]
mov byte [esi + 0xb], al
mov eax, dword [ebp - 0x3c]
mov cl, ah
xor edx, edx
mov byte [esi + 0xc], cl
mov byte [esi + 0xd], al
mov eax, dword [ebp - 0x40]
mov ecx, ebx
mov dl, ah
mov byte [esi + 0xf], al
lea eax, [ebp - 0x20]
mov byte [esi + 0xe], dl
push eax
call fcn.004245e0
mov ecx, ebx
mov byte [esi + 0x10], al
call fcn.004246e0
mov cx, word [ebp + 0xc]
mov dl, byte [ebp + 8]
mov byte [esi + 0x11], al
mov ax, cx
shr ax, 8
mov byte [esi + 0x12], al
mov byte [esi + 0x13], cl
mov byte [esi + 0x100], 0xa0
mov byte [esi + 0x101], 0
mov byte [esi + 0x102], dl
mov byte [esi + 0x103], al
mov byte [esi + 0x104], cl
mov al, byte [ebx + 0xac]
mov ecx, ebx
mov byte [esi + 0x105], al
call fcn.004244c0
mov byte [esi + 0x10f], al
xor cl, cl
cmp cl, 8
mov byte [ebp + 8], cl
jae 0x4218cf
mov eax, dword [ebp + 8]
xor edx, edx
and eax, 0xff
inc cl
mov dl, byte [ebp + eax*2 - 0x83]
mov byte [esi + eax*2 + 0x110], dl
mov dl, byte [ebp + eax*2 - 0x84]
mov byte [esi + eax*2 + 0x111], dl
jmp 0x42189d
mov eax, dword [0x4971e8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.SetValue
push 0x493dfc
call edi
cmp eax, 1
jne 0x421994
mov ecx, dword [0x4971e8]
push ecx
push 0
push str.SetValue_290
push 0x493dfc
call edi
mov byte [esi + 0x122], al
mov edx, dword [0x4971e8]
push edx
push 0
push str.SetValue_291
push 0x493dfc
call edi
mov byte [esi + 0x123], al
mov eax, dword [0x4971e8]
push eax
push 0
push str.SetValue_292
push 0x493dfc
call edi
mov byte [esi + 0x124], al
mov ecx, dword [0x4971e8]
push ecx
push 0
push str.SetValue_293
push 0x493dfc
call edi
mov byte [esi + 0x125], al
mov edx, dword [0x4971e8]
push edx
push 0
push str.SetValue_294
push 0x493dfc
call edi
mov byte [esi + 0x126], al
mov eax, dword [0x4971e8]
push eax
push 0
push str.SetValue_295
push 0x493dfc
call edi
mov byte [esi + 0x127], al
jmp 0x4219c8
xor ecx, ecx
mov cl, byte [ebx + 0x21]
cmp cl, 0xe3
jne 0x4219c8
mov byte [esi + 0x122], 0x51
mov byte [esi + 0x123], 0x3e
mov byte [esi + 0x124], 0xe9
mov byte [esi + 0x125], 0xe1
mov byte [esi + 0x126], 0x50
mov byte [esi + 0x127], 0xa
mov eax, dword [ebp - 0x20]
test ax, ax
je 0x4219e3
xor edx, edx
mov dl, ah
mov byte [esi + 0x192], dl
mov al, byte [ebp - 0x20]
mov byte [esi + 0x193], al
mov cl, byte [ebx + 0x786c]
mov byte [esi + 0x194], cl
mov ecx, ebx
call fcn.00424200
mov byte [esi + 0x195], al
mov al, byte [ebx + 0x23]
cmp al, 0x90
je 0x421a0e
mov ecx, ebx
call fcn.004126f0
test eax, eax
je 0x421a2b
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x421a2b
cmp byte [ebx + 0x52f5], 1
setne dl
dec edx
and edx, 0x51
mov byte [esi + 0x19f], dl
jmp 0x421a48
cmp byte [ebx + 0x23], 0x96
jne 0x421a48
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x421a48
cmp byte [ebx + 0x52f5], 1
sete al
mov byte [esi + 0x19f], al
mov ecx, ebx
call fcn.004126f0
test eax, eax
je 0x421a69
mov cl, byte [ebp - 0x54]
mov byte [esi + 0x1a7], cl
mov ecx, ebx
call fcn.004246e0
mov byte [esi + 0x1a8], al
mov al, byte [ebx + 0xea]
cmp al, 0xc
jne 0x421a77
mov al, 8
jmp 0x421a7d
cmp al, 2
jne 0x421a7d
mov al, 4
xor edx, edx
mov dl, byte [ebx + 0xed]
mov byte [esi + 0x1ee], al
mov byte [esi + 0x1ed], dl
mov al, byte [ebx + 0xec]
mov byte [esi + 0x1ef], al
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov byte [esi + 0x1fe], 0x4a
mov byte [esi + 0x1ff], 0x4e
mov esi, dword [ebp + 0x1c]
and ecx, 0xff
push esi
inc ecx
mov edx, dword [ebx + 0x18]
push ecx
push 0
push 0
push 0
push 0
push eax
push 0
push 0xa
push 0xfa
push edx
call fcn.0043f130
add esp, 0x2c
test eax, eax
jne 0x421af3
lea eax, [ebp - 0x44]
push 0x48d780
push eax
mov dword [ebp - 0x44], 0x40d00
call sub.MSVCRT.dll__CxxThrowException
test esi, esi
je 0x421b00
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], 0
test eax, eax
jne 0x421b21
mov ecx, ebx
call fcn.00422d50
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x421b2f
mov ecx, ebx
call fcn.00422440
mov ecx, ebx
call fcn.0041bef0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18