Function at 0x406470
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47208c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x491050]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491050]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [esp + 0x248]
mov esi, edx
xor ebx, ebx
push 0x103
lea edx, [esp + 0x31]
push ebx
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x38], bl
call fcn.00444930
push 0x103
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x148], bl
call fcn.00444930
add esp, 0x18
call fcn.0040ed10
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40652d
push str.__atl_condVal
push ebx
push 0xe2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x406523
int3
push 0x80004005
call fcn.0040d9e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x240], ebx
call fcn.0040ed10
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40657e
push str.__atl_condVal
push ebx
push 0xe2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x406574
int3
push 0x80004005
call fcn.0040d9e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push esi
lea ecx, [esp + 0x18]
push 0x487b5c
push ecx
mov byte [esp + 0x24c], 1
call fcn.0040cd60
add esp, 0xc
push 0x488394
push 0x48878c
lea edx, [esp + 0x1c]
push edx
call fcn.0040c080
push 0x488394
push 0x488790
lea eax, [esp + 0x1c]
push eax
call fcn.0040c080
mov esi, dword [esp + 0x14]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4065f7
push edi
lea ecx, [esp + 0x18]
call fcn.0040d6a0
mov esi, dword [esp + 0x14]
push esi
call fcn.004420d0
add esp, 4
cmp edi, ebx
jge 0x406624
push str.nNewLength___0
push ebx
push 0x245
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x406624
int3
push edi
lea ecx, [esp + 0x18]
call fcn.0040d720
mov eax, dword [esi - 0xc]
cmp eax, ebx
jge 0x40663a
or eax, 0xffffffff
jmp 0x406653
push 0x488794
push esi
call fcn.00441a20
add esp, 8
cmp eax, ebx
jne 0x406651
or eax, 0xffffffff
jmp 0x406653
sub eax, esi
lea ecx, [esp + 0x14]
inc eax
push ecx
call fcn.0040bfe0
mov edi, dword [esp + 0x14]
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x406684
push esi
lea ecx, [esp + 0x18]
call fcn.0040d6a0
mov edi, dword [esp + 0x14]
push edi
call fcn.004420d0
add esp, 4
cmp esi, ebx
jge 0x4066b1
push str.nNewLength___0
push ebx
push 0x245
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x4066b1
int3
push esi
lea ecx, [esp + 0x18]
call fcn.0040d720
mov edx, dword [esp + 0x20]
push 0x488798
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40678b
lea esi, [ebp - 0x10]
lea ebp, [esi + 0xc]
mov byte [esp + 0x240], bl
cmp dword [ebp], ebx
jne 0x406702
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x406702
int3
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x406719
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea esi, [edi - 0x10]
lea edi, [esi + 0xc]
mov dword [esp + 0x240], 0xffffffff
cmp dword [edi], ebx
jne 0x40674b
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40674b
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x406761
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00439cd0
add esp, 0x230
ret
push 0x488238
push 0x4887a0
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040c080
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
lea edi, [eax - 1]
cmp edi, ebx
jl 0x4067b1
cmp edi, eax
jle 0x4067d1
push str._iChar___0____iChar___GetLength___
push ebx
push 0x1f8
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x4067d1
int3
cmp edi, ebx
jl 0x4069d1
cmp edi, dword [esi - 0xc]
jg 0x4069d1
cmp byte [edi + esi], 0x2c
jne 0x406826
push 0x4882a0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040c5a0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 2
call fcn.0040bed0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 1
call fcn.0040d1e0
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x20]
push esi
inc eax
push eax
push ecx
call fcn.0043dc50
add esp, 0xc
cmp dword [esi - 0xc], ebx
jge 0x406843
or eax, 0xffffffff
jmp 0x40685c
push 0x488238
push esi
call fcn.00441a20
add esp, 8
cmp eax, ebx
jne 0x40685a
or eax, 0xffffffff
jmp 0x40685c
sub eax, esi
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c520
mov byte [esp + 0x240], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x4068b7
cmp dword [esi + 0xc], ebx
jl 0x4068a5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4068a5
push eax
call fcn.0040d130
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.0040d540
lea ebp, [edi + 0x10]
mov dword [esp + 0x18], ebp
jmp 0x4068b7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040d7e0
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x240], 1
mov esi, dword [esp + 0x1c]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x4068eb
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x4068eb
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x406901
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov edx, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub edx, 0x103
or ecx, edx
jge 0x406928
push 0x103
lea ecx, [esp + 0x1c]
call fcn.0040d6a0
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ebp
push 0x104
push eax
call fcn.0043dc50
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0x4887a0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, ebx
je 0x406951
mov byte [eax], bl
push str.SAM
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.0043dc50
add esp, 0xc
push 0x496368
push 0x104
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x38]
push eax
push esi
push str.Start
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x487798
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x18]
test eax, eax
jne 0x4069b9
call fcn.0040d1e0
lea ecx, [esp + 0x14]
call fcn.0040d1e0
jmp 0x406761
call fcn.0040d1e0
lea ecx, [esp + 0x14]
call fcn.0040d1e0
mov eax, 1
jmp 0x406763
push 0x80070057
call fcn.0040d9e0
int3