Function at 0x40eead
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
sub esp, 0x820
lea ebp, [esp - 4]
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x820], eax
push 0x20
mov eax, 0x439803
call fcn.0041f00d
mov edi, dword [ebp + 0x82c]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x618], ax
lea eax, [ebp + 0x61a]
push ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call fcn.00420d30
xor eax, eax
push esi
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push ebx
push eax
call fcn.00420d30
xor eax, eax
push esi
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push ebx
push eax
call fcn.00420d30
add esp, 0x24
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0x800
call fcn.00403318
cmp eax, ebx
jne 0x40f0ac
lea eax, [ebp - 0x20]
push eax
push str.lastuninstalltime
lea ecx, [ebp - 0x14]
call fcn.00403359
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x618]
push eax
push str.lastinstallsource
call fcn.00403391
test eax, eax
jne 0x40efb7
lea eax, [ebp + 0x618]
push eax
call fcn.0041f168
pop ecx
test eax, eax
jbe 0x40efb7
lea eax, [ebp + 0x618]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.00421be9
pop ecx
pop ecx
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00420d30
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push str._NEWINSTALL_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xa
lea eax, [ebp]
push ebx
push eax
call fcn.00423087
add esp, 0xc
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x18]
push eax
push str.firstinstalltime
lea ecx, [ebp - 0x14]
call fcn.00403359
test eax, eax
jne 0x40f00b
mov eax, dword [ebp - 0x18]
jmp 0x40f025
lea eax, [ebp - 0x18]
push eax
push str.thefirstinstalltime
lea ecx, [ebp - 0x14]
call fcn.00403359
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x18]
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x410]
push eax
push str.firstinstallversion
lea ecx, [ebp - 0x14]
call fcn.00403391
test eax, eax
jne 0x40f06a
lea eax, [ebp + 0x410]
push eax
call fcn.0041f168
pop ecx
test eax, eax
jbe 0x40f06a
lea eax, [ebp + 0x410]
push eax
lea eax, [edi + 0x228]
push eax
call fcn.00421be9
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x208]
push eax
push str.firstinstallsource
lea ecx, [ebp - 0x14]
call fcn.00403391
cmp eax, ebx
jne 0x40f0ac
lea eax, [ebp + 0x208]
push eax
call fcn.0041f168
pop ecx
test eax, eax
jbe 0x40f0ac
lea eax, [ebp + 0x208]
push eax
lea eax, [edi + 0x430]
push eax
call fcn.00421be9
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00420a13
mov eax, dword [ebp - 0x2c]
pop ecx
lea ecx, [ebp - 0x14]
mov dword [edi + 0x1c], eax
call fcn.004032a3
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push 0x40e110
push ebx
push ebx
mov dword [edi], 0xa31
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004032a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x820]
xor ecx, ebp
call fcn.0041effe
add ebp, 0x824
leave
ret