Function at 0x402a60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52369c
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x56e188]
xor eax, esp
mov dword [esp + 0x258], eax
push ebp
push esi
push edi
mov eax, dword [0x56e188]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x27c]
lea ecx, [esp + 0x1c]
call fcn.004068e0
xor edi, edi
mov esi, 8
mov dword [esp + 0x274], edi
cmp dword [eax + 0x18], esi
jb 0x402ac2
mov eax, dword [eax + 4]
jmp 0x402ac5
add eax, 4
push eax
lea ecx, [esp + 0x14]
call fcn.004053e0
mov byte [esp + 0x274], 2
cmp dword [esp + 0x34], esi
jb 0x402aea
mov eax, dword [esp + 0x20]
push eax
call fcn.00408d8a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
call fcn.00410e81
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402b17
push 0x80004005
call fcn.00405240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x274], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x402b55
push 0x104
lea ecx, [esp + 0x18]
call fcn.004051a0
mov esi, dword [esp + 0x14]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004fe098
add esp, 8
cmp eax, edi
jl 0x402d1a
cmp eax, dword [esi - 8]
jg 0x402d1a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00410e81
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402ba2
push 0x80004005
call fcn.00405240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ebp
push esi
lea ecx, [esp + 0x20]
push str._sinf_s
push ecx
mov byte [esp + 0x284], 4
call fcn.00404a40
add esp, 0x10
lea edx, [esp + 0x38]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x18]
push edx
push edi
call fcn.00419e17
test eax, eax
jne 0x402c99
lea eax, [edi - 0x10]
mov byte [esp + 0x274], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x274], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x274], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004fd1b4
add esp, 0x268
ret
call fcn.00402ef0
mov ebp, eax
lea eax, [edi - 0x10]
mov byte [esp + 0x274], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x274], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ce8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x274], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x402c72
push 0x80070057
call fcn.00405240
int3