Function at 0x405b30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43a3dc
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x44e848]
xor eax, esp
mov dword [esp + 0x420], eax
push ebp
push esi
push edi
mov eax, dword [0x44e848]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00427580
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x23e]
push eax
mov word [esp + 0x240], dx
call fcn.00427580
add esp, 0x18
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405bbb
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x43c], 0
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405bf0
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x43c], 1
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405c22
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0
mov byte [esp + 0x448], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x20]
push 0x5c
push edx
call fcn.004276b8
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x20]
lea edx, [eax + 2]
jmp 0x405c70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405c70
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.00403430
push str.TPMXUD.ini
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00405650
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 3
call fcn.004055d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x43c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405cdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
push 0x104
lea edx, [esp + 0x230]
push edx
push 0x43ebcc
push str.ProductString
push 0x43e660
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405d35
lea eax, [esp + 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d14
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403430
mov ecx, dword [esp + 0x14]
push 0x43e660
push ecx
lea edx, [esp + 0x20]
push str._s__s
push edx
call fcn.00401450
mov edi, dword [esp + 0x28]
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
add esp, 0x10
mov esi, 0xa
push edi
push 0x43f0a8
dec esi
call ebp
test eax, eax
jne 0x405d73
test esi, esi
jne 0x405d60
jmp 0x405d80
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi - 0x10]
mov byte [esp + 0x43c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405daf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x43c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405dd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00427533
add esp, 0x430
ret