Function at 0x406831
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
push ebx
push esi
mov esi, 0x103
push edi
xor ebx, ebx
push esi
push 0x423b40
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
call fcn.00401b54
push 2
push esi
mov esi, 0x422de0
mov edi, 0x420b98
push esi
push edi
push 0x41cb9c
push str.Destination
call fcn.0040105a
add esp, 0x20
cmp byte [0x422de0], bl
mov byte [0x423b00], bl
mov byte [0x4237e0], bl
je 0x406ae1
push 0x41c328
push esi
call fcn.00413697
push 0x41c328
push ebx
call fcn.00413697
add esp, 0x10
cmp eax, ebx
je 0x4068b8
push eax
push 0x423b00
call fcn.00413500
pop ecx
pop ecx
push 0x41c328
push ebx
call fcn.00413697
pop ecx
cmp eax, ebx
pop ecx
je 0x4068d6
push eax
push 0x4237e0
call fcn.00413500
pop ecx
pop ecx
cmp byte [0x423b00], bl
je 0x406adb
cmp byte [0x4237e0], bl
je 0x406adb
push ebx
push 1
push ebx
push esi
push 0x80000002
call fcn.00401998
add esp, 0x14
cmp dword [0x423800], ebx
mov dword [ebp - 8], eax
je 0x406929
push 1
push 1
push ebx
push esi
push 0x80000002
call fcn.00401998
add esp, 0x14
test eax, eax
je 0x406929
mov dword [ebp - 8], 1
push ebx
push 1
push ebx
push esi
push 0x80000001
call fcn.00401998
add esp, 0x14
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x24], eax
jne 0x4069f0
cmp eax, ebx
jne 0x4069f0
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00413500
push 0x4236c0
lea eax, [ebp - 0x290]
push str.wincmd.ini
push eax
call fcn.00405740
add esp, 0x14
cmp dword [0x423800], ebx
je 0x4069f0
lea eax, [ebp - 0x290]
push eax
push 0x3ff
push 0x422f00
push ebx
push ebx
push str.Configuration
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [0x422f00], bl
jne 0x4069f0
lea eax, [ebp - 0x394]
push 0x41c460
push eax
call fcn.00413500
lea eax, [ebp - 0x394]
push 0x102
push eax
call fcn.00405302
add esp, 0x10
cmp byte [ebp - 0x394], bl
je 0x4069f0
cmp byte [ebp - 0x394], 0x26
je 0x4069f0
push str._APPDATA_GHISLERwincmd.ini
push esi
call fcn.00413500
pop ecx
mov dword [0x420b08], 1
pop ecx
push ebx
push ebx
lea eax, [ebp - 0x18c]
push ebx
push eax
push 0x80000002
mov byte [ebp - 0x18c], bl
call fcn.00401998
add esp, 0x14
cmp dword [0x423800], ebx
je 0x406a2d
push 1
push ebx
lea eax, [ebp - 0x18c]
push ebx
push eax
push 0x80000002
call fcn.00401998
add esp, 0x14
push ebx
push ebx
lea eax, [ebp - 0x18c]
push ebx
push eax
push 0x80000001
call fcn.00401998
add esp, 0x14
cmp byte [ebp - 0x18c], bl
jne 0x406aa5
push 2
push 0x41c4e8
push esi
call fcn.00414030
add esp, 0xc
test eax, eax
je 0x406aa5
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00413500
lea eax, [ebp - 0x290]
push 0x103
push eax
call fcn.00405302
add esp, 0x10
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push 0x103
push eax
push edi
push 0x4237e0
push 0x423b00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 2
push ebx
push str.IgnoreOldLocation
push str.Destination
call fcn.004011d0
add esp, 0x10
test eax, eax
jne 0x406ae1
cmp byte [ebp - 0x18c], bl
je 0x406ae1
lea eax, [ebp - 0x18c]
push eax
push 0x423b40
call fcn.00413500
pop ecx
pop ecx
jmp 0x406ae1
mov byte [0x422de0], bl
push 0x423b40
push 0x4236c0
call fcn.00413500
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00413500
push 0x4236c0
lea eax, [ebp - 0x290]
push str.wincmd.ini
push eax
call fcn.00405740
add esp, 0x1c
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push 0x103
push eax
push edi
push str.LanguageIni
push str.Configuration
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x18c], bl
mov dword [ebp - 0xc], ebx
jne 0x406bd1
cmp dword [0x423800], ebx
je 0x406b7f
cmp dword [0x422bf4], ebx
jne 0x406b7f
push str.GetUserDefaultUILanguage
push str.kernel32
call fcn.0040c877
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x420b80], eax
je 0x406b7f
call eax
cmp eax, ebx
jne 0x406b85
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp - 0x17]
push 0x10
push ecx
push eax
mov byte [ebp - 0x18], 0x30
call fcn.00413472
lea eax, [ebp - 0x18]
push eax
call fcn.00413210
add esp, 0x10
cmp eax, 5
lea eax, [ebp - 0x17]
je 0x406bac
lea eax, [ebp - 0x18]
push 2
lea ecx, [ebp - 0x20]
push 7
push ecx
push edi
push eax
push str.locale
call fcn.0040105a
add esp, 0x18
cmp byte [ebp - 0x20], bl
je 0x406bdf
movsx eax, byte [ebp - 0x20]
mov dword [ebp - 0xc], eax
jmp 0x406bdf
cmp dword [0x420b1c], ebx
je 0x406bdf
mov dword [0x41c040], ebx
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x18c]
push 0x5c
push eax
call fcn.00413670
pop ecx
cmp eax, ebx
pop ecx
je 0x406c03
inc eax
jmp 0x406c09
lea eax, [ebp - 0x18c]
push eax
push 0x423e80
call fcn.00413500
push 0x2e
push 0x423e80
call fcn.00413670
add esp, 0x10
cmp eax, ebx
je 0x406c29
mov byte [eax], bl
push 2
push 1
push str.Count
push str.languages
call fcn.004011d0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 1
pop ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
jl 0x406d69
lea eax, [ebp - 0x38]
push 0xa
push eax
push dword [ebp - 4]
call fcn.00413472
push 2
lea eax, [ebp - 0x88]
push 0x4f
push eax
lea eax, [ebp - 0x38]
push edi
push eax
push str.languages
call fcn.0040105a
add esp, 0x24
cmp byte [ebp - 0x88], bl
je 0x406d3f
lea eax, [ebp - 0x88]
push 0x41c328
push eax
call fcn.00413697
pop ecx
cmp eax, ebx
pop ecx
je 0x406d3f
push 0x41c328
push ebx
call fcn.00413697
pop ecx
cmp eax, ebx
pop ecx
je 0x406d3f
mov cl, byte [eax]
push 2
mov byte [ebp - 0x10], cl
lea ecx, [ebp - 0x88]
push 0x4e
push ecx
push edi
push eax
push str.langname
call fcn.0040105a
add esp, 0x18
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x88]
push 0x41c52c
push eax
call fcn.00413510
lea eax, [ebp - 0x88]
push 0x5f
push eax
call fcn.00413670
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18c]
push 0x5f
push eax
call fcn.00413670
add esp, 0x18
cmp dword [ebp - 0x1c], ebx
je 0x406d31
cmp eax, ebx
je 0x406d31
push 4
push eax
push dword [ebp - 0x1c]
call fcn.00414030
add esp, 0xc
test eax, eax
je 0x406d50
cmp dword [ebp - 0xc], ebx
je 0x406d3f
movsx eax, byte [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x406d50
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jle 0x406c50
jmp 0x406d69
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
mov dword [0x423524], eax
mov al, byte [ebp - 0x10]
mov byte [0x420b00], al
call fcn.0040a6f7
pop ecx
cmp dword [ebp - 8], ebx
jne 0x406e67
cmp dword [ebp - 0x24], ebx
jne 0x406e67
cmp byte [0x422de0], bl
je 0x406e67
cmp dword [0x4240b0], ebx
jne 0x406dae
cmp dword [0x423800], ebx
je 0x406e67
push str._windir_
call fcn.00401aad
test eax, eax
pop ecx
jne 0x406e67
lea eax, [ebp - 0x394]
push esi
push eax
call fcn.00413500
push 1
pop eax
push str._APPDATA_GHISLER_
push esi
mov dword [0x420b08], eax
mov dword [0x420b0c], eax
call fcn.00413500
mov edi, 0x104
lea eax, [ebp - 0x59c]
push edi
push str._APPDATA_
push eax
call fcn.0040c67c
lea eax, [ebp - 0x59c]
push edi
push eax
call fcn.00405507
add esp, 0x24
cmp word [ebp - 0x59a], 0x3a
jne 0x406e3b
lea eax, [ebp - 0x6a0]
push 0x103
push eax
lea eax, [ebp - 0x59c]
push eax
call fcn.0040c9df
add esp, 0xc
test eax, eax
jne 0x406e3b
push str.C:_totalcmd_
push esi
call fcn.00413500
mov al, byte [ebp - 0x59c]
pop ecx
pop ecx
mov byte [0x422de0], al
lea eax, [ebp - 0x394]
push 0x5c
push eax
call fcn.00413670
pop ecx
cmp eax, ebx
pop ecx
je 0x406e52
inc eax
jmp 0x406e58
lea eax, [ebp - 0x394]
push 0x103
push eax
push esi
call fcn.0040c6bc
add esp, 0xc
cmp dword [0x420b14], ebx
pop edi
pop esi
pop ebx
je 0x406e83
push 0x103
push 0x423b40
call fcn.00401b54
pop ecx
pop ecx
leave
ret