Function at 0x407111
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x84
mov eax, 0x4bea95
call fcn.00425b5e
mov edi, ecx
mov dword [ebp - 0x8c], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push str.Enter
push 0xdd
push str.CThunderAgent::DoInstall
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallThunderAgent.cpp
push 5
mov dword [ebp - 0x88], eax
call fcn.00403339
add esp, 0x14
lea eax, [ebp - 0x84]
xor ebx, ebx
push ebx
push 0x4ddcfc
push eax
call fcn.004018fa
push eax
call fcn.00401ecd
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x84]
mov dword [ebp - 0x90], esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040274c
mov byte [ebp - 4], 1
call fcn.004018fa
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.00401cd1
lea edx, [edi + 0x68]
push 0x4ddd04
lea ecx, [ebp - 0x54]
call fcn.00404486
pop ecx
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.004073b4
mov edx, dword [ebp - 0x88]
mov byte [ebp - 4], 3
test edx, edx
je 0x4071f5
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x88], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4071d7
sub ecx, dword [ebp - 0x88]
sar ecx, 1
je 0x4071f5
push edx
lea ecx, [ebp - 0x6c]
call fcn.0040263f
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00407093
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov dword [esp], 0x4ddd40
call fcn.0040263f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4072b3
xor eax, eax
lea edi, [ebp - 0x24]
cmp dword [ebp - 0x28], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0x4dbf70
push str.MessageBox
push str.ForTest
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x4dc688
lea eax, [ebp - 0x24]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407296
test dx, dx
je 0x407292
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407296
add eax, 4
add ecx, 4
test dx, dx
jne 0x407270
mov eax, ebx
jmp 0x40729b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4072ad
push ebx
push ebx
push 0x4ddd9c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40737d
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4ee760], eax
test eax, eax
je 0x40734e
push str.Install
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov dword [0x4ee764], edx
test edx, edx
je 0x407345
lea eax, [edi + 0x110]
cmp dword [eax + 0x14], 8
jb 0x40730e
mov eax, dword [eax]
lea ecx, [edi + 0xc8]
cmp dword [ecx + 0x14], 8
jb 0x40731c
mov ecx, dword [ecx]
cmp dword [ebp - 0x58], 8
lea esi, [ebp - 0x6c]
lea ebx, [edi + 0x68]
cmovae esi, dword [ebp - 0x6c]
cmp dword [ebx + 0x14], 8
jb 0x407332
mov ebx, dword [ebx]
push dword [edi + 0x64]
push eax
push ecx
push esi
push ebx
push dword [edi + 0x54]
call edx
add esp, 0x18
mov bl, 1
jmp 0x407387
test esi, esi
je 0x407387
or dword [esi], 0xffffffff
jmp 0x407387
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.LoadLibrary_Fail__lasterror:_d
push pe_nt_image_headers32
push str.CThunderAgent::DoInstall
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallThunderAgent.cpp
push 2
call fcn.00403339
add esp, 0x18
test esi, esi
je 0x407387
mov dword [esi], edi
jmp 0x407387
test esi, esi
je 0x407387
mov dword [esi], 2
lea ecx, [ebp - 0x3c]
call fcn.00402600
lea ecx, [ebp - 0x6c]
call fcn.00402600
lea ecx, [ebp - 0x54]
call fcn.00402600
lea ecx, [ebp - 0x84]
call fcn.00402600
mov al, bl
call fcn.00425b19
ret 8