Function at 0x402a50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x443a86
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov eax, dword [0x458af8]
mov eax, dword [eax*4 + 0x4556e8]
xor ebx, ebx
add eax, 0x66
push ebx
push eax
mov ecx, esi
call fcn.00415dd8
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.CAutoUpdateDlg.0
call fcn.0041d6e4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402ab9
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x90], eax
mov byte [esp + 0x24], 1
call fcn.0041d6e4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402aea
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x9c], eax
mov byte [esp + 0x24], 2
lea ebp, [esi + 0xa0]
call fcn.0041d6e4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402b21
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x24], 3
call fcn.0041d6e4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402b4f
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa4], eax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov byte [esp + 0x24], 5
call fcn.0041caa0
call fcn.0041caa0
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x8c], eax
xor eax, eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
call fcn.0041d6e4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402bce
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x24], 6
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x402c09
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401f70
mov edi, dword [esp + 0x18]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0x104
push 0x458b00
call fcn.00425ddd
add esp, 0xc
cmp edi, ebx
jne 0x402c30
xor eax, eax
jmp 0x402c46
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402c35
sub eax, edx
js 0x402ce7
cmp eax, dword [edi - 8]
jg 0x402ce7
lea ecx, [esp + 0x18]
push ecx
mov dword [edi - 0xc], eax
mov ecx, ebp
mov byte [eax + edi], bl
call fcn.00409230
push 0xc
push str.ncstduioTemp
mov ecx, ebp
call fcn.00407ed0
mov edx, dword [0x458af8]
mov ebp, dword [edx*4 + 0x455930]
cmp ebp, ebx
jne 0x402c84
xor eax, eax
jmp 0x402c9b
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402c90
sub eax, edx
push eax
push ebp
lea ecx, [esi + 0xa4]
call fcn.004091a0
lea eax, [edi - 0x10]
mov dword [esi + 0x98], ebx
mov byte [esp + 0x24], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ccf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push 0x80070057
call fcn.00401ef0
int3