Function at 0x40b570
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x454e41
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4738c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push 0
push 0x9a
mov ecx, esi
call fcn.0040cd7a
lea edi, [esi + 0x74]
mov dword [esp + 0x20], 0
mov ecx, edi
mov dword [esi], vtable.CUpdateDialog.0
call fcn.0040f304
mov dword [edi], vtable.CButton.0
lea edi, [esi + 0xc8]
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.0040f304
mov dword [edi], vtable.CButton.0
lea edi, [esi + 0x11c]
mov ecx, edi
mov byte [esp + 0x20], 2
call fcn.004210f0
mov dword [edi], vtable.CHtmlCtrl.0
mov byte [esp + 0x20], 3
lea edi, [esi + 0x210]
call fcn.00418a14
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b61a
push 0x80004005
call fcn.00401890
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x464740
lea ecx, [esi + 0x218]
mov byte [esp + 0x24], 4
call fcn.00401c60
push fcn.00401c40
push fcn.004025c0
push 4
push 4
lea ecx, [esi + 0x21c]
push ecx
mov byte [esp + 0x34], 5
call fcn.0043ccfd
mov byte [esp + 0x20], 6
call fcn.00418a14
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b67b
push 0x80004005
call fcn.00401890
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x234], eax
push fcn.00401c40
push fcn.004025c0
push 9
push 4
lea ebp, [esi + 0x238]
push ebp
mov byte [esp + 0x34], 7
call fcn.0043ccfd
mov byte [esp + 0x20], 8
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40b6d6
push 0x104
mov ecx, edi
call fcn.004018e0
mov eax, dword [edi]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [edi]
test ecx, ecx
jne 0x40b6f0
xor eax, eax
jmp 0x40b706
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40b6f5
sub eax, ebx
js 0x40b877
cmp eax, dword [ecx - 8]
jg 0x40b877
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
call fcn.00418a14
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b732
push 0x80004005
call fcn.00401890
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x20], 9
mov eax, dword [edi - 8]
mov ebx, dword [0x478018]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 2
or eax, ecx
jge 0x40b76e
push 2
lea ecx, [esp + 0x18]
call fcn.004018e0
mov edi, dword [esp + 0x14]
push ebx
push 2
push edi
push 0x4636c0
push str.ExecuteType
push str.SystemState
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
call fcn.0043ccf8
add esp, 4
push 4
push str.FILE
mov ecx, ebp
mov dword [esi + 0x214], eax
call fcn.00401ac0
push 3
lea ecx, [esi + 0x23c]
push 0x465728
call fcn.00401ac0
push 2
lea ecx, [esi + 0x240]
push 0x46572c
call fcn.00401ac0
push 1
lea ecx, [esi + 0x244]
push 0x465730
call fcn.00401ac0
push 0
lea ecx, [esi + 0x248]
push 0x464740
call fcn.00401ac0
push 1
lea ecx, [esi + 0x24c]
push 0x465734
call fcn.00401ac0
push 2
lea ecx, [esi + 0x250]
push 0x465738
call fcn.00401ac0
push 3
lea ecx, [esi + 0x254]
push 0x46573c
call fcn.00401ac0
push 4
lea ecx, [esi + 0x258]
push str.FILE
call fcn.00401ac0
lea eax, [edi - 0x10]
mov dword [esi + 0x25c], 0
mov byte [esp + 0x20], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b85f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x80070057
call fcn.00401890
int3