Function at 0x40c240
Capabilities:
Create pipe
Get file attributes

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x374c]
push edi
mov edi, dword [esp + 0x20]
lea edx, [ecx + 0x1a6]
mov dword [esp + 0x24], eax
xor ebp, 0x345
xor ebx, 0xe03
lea eax, [edi - 0x3226]
xor edi, 0x3226
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add eax, 0xcd
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0xf9]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jl 0x40c42e
mov eax, ecx
xor eax, 0xbb4
cmp ebx, eax
jne 0x40c36d
mov eax, dword [0x70c18c]
cmp dword [eax + 0xf8], 0x1643b
je 0x40c2d9
mov eax, dword [esi + 0x134]
add eax, 0x1ba746
or dword [esi + 0x100], eax
jmp 0x40c2ee
mov eax, dword [esi + 0x120]
add eax, dword [esi + 0x2c]
xor eax, dword [0x72a240]
mov dword [esi + 0xf8], eax
mov eax, dword [0x72a2c8]
cmp eax, dword [0x72a250]
jbe 0x40c313
mov ecx, dword [0x70c18c]
mov eax, dword [ecx + 0xfc]
add eax, 0xeb68d
xor dword [ecx + 0x44], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor edi, 0x317e
xor eax, 0x389c
add edi, 0xede
cmp ecx, eax
je 0x40c36d
mov eax, dword [0x70c18c]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x80]
cmp eax, dword [0x72a1d4]
jne 0x40c353
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe8], 0x2bd81
jmp 0x40c367
mov eax, dword [esi + 0x10c]
sub eax, dword [esi + 0x44]
add eax, 0x1fde53
xor dword [esi + 0xb4], eax
xor edi, 0x72a7
lea eax, [ebx - 0x140]
cmp edx, eax
jle 0x40c3e6
lea eax, [edi + 0x451]
cmp dword [esp + 0x24], eax
je 0x40c3be
cmp dword [esi + 0x2c], 0x9417
jb 0x40c3ac
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x94]
mov eax, dword [0x70c18c]
sub ecx, 0x15568
add dword [eax + 0xe4], ecx
mov ecx, dword [esp + 0x1c]
jmp 0x40c3b6
add dword [esi + 0xe4], 0x74ac9
sub ebx, 0x654
jmp 0x40c3e6
mov eax, dword [esi + 0x38]
sub eax, 0x387f
or eax, ebx
cmp ebp, eax
jae 0x40c3e6
mov eax, ebx
sub eax, edx
add eax, dword [esp + 0x24]
xor dword [esi + 0xe4], eax
mov eax, dword [0x72a2b8]
add eax, edx
imul eax, edi
or ebp, eax
mov eax, ecx
xor eax, 0x3af
cmp ebp, eax
jge 0x40c40b
add dword [esp + 0x24], 0x380f
add ecx, 0x45e
mov dword [esp + 0x1c], ecx
sub ebx, 0x17d
jmp 0x40c42e
lea eax, [edx + edi]
xor eax, ebx
cmp ebp, eax
je 0x40c42e
mov eax, dword [0x70c18c]
mov ecx, dword [eax + 0x8c]
add ecx, dword [eax + 0x7c]
imul eax, ecx, 0x3aea
or dword [esi + 0xfc], eax
cmp edx, edi
jl 0x40c6ec
mov ecx, dword [esp + 0x20]
lea eax, [ecx + 0x3aea]
cmp ebx, eax
je 0x40c517
mov eax, dword [0x72a2f8]
add eax, 0x1597d6
or dword [esi + 0x10c], eax
cmp dword [0x72a290], 0xde13
ja 0x40c47b
mov ecx, dword [esi + 0x84]
mov eax, dword [0x70c18c]
xor ecx, 0x1ecd
mov dword [eax + 0x108], ecx
mov eax, dword [esi + 0x44]
sub edi, 0x1a7
cmp eax, dword [0x72a2b4]
jb 0x40c4a7
mov eax, dword [0x70c18c]
mov ecx, dword [eax + 0xc0]
mov eax, dword [esi + 0x24]
add eax, 0x17563b
add eax, ecx
add dword [esi + 0x110], eax
cmp dword [esi + 0x74], 0x1ea4
je 0x40c4ca
mov eax, dword [esi + 0xe4]
mov edx, dword [0x70c18c]
add eax, 0x2983
add eax, dword [esi + 0xfc]
xor dword [edx + 0x7c], eax
cmp dword [esi + 0xb4], 0x199b
je 0x40c4ec
mov eax, dword [0x70c18c]
mov ecx, 0xfff54e28
sub ecx, dword [eax + 0x94]
add dword [esi + 0xf8], ecx
mov ecx, dword [0x70c18c]
mov eax, dword [ecx + 0x74]
cmp eax, dword [ecx + 0x134]
jb 0x40c6ec
mov eax, 0x15918d
sub eax, dword [ecx + 0x10c]
add dword [esi + 0x108], eax
jmp 0x40c6ec
mov eax, dword [0x72a24c]
xor eax, ecx
sub eax, edi
cmp dword [esi + 0x24], eax
ja 0x40c66d
lea eax, [edx + edi]
cmp ebp, eax
je 0x40c59d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x62c
push 0x6ba
push 0x39f
push 0x39b0
push 0x3b2
push 0x3a3
push 0xf86
call fcn.0041b4ef
mov byte [0x72aaa6], al
add esp, 0x1c
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0x110]
sub eax, 0x405c
and eax, dword [esi + 0xf8]
push eax
mov eax, dword [esi + 0x84]
xor eax, ebp
imul eax, dword [esi + 0xc0]
push eax
mov eax, dword [0x70c18c]
sub ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenThread]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebp
and eax, 0x322e
push eax
mov eax, dword [esi + 0x8c]
or eax, edi
push eax
mov eax, dword [esi + 0xf4]
and eax, ebp
add eax, dword [esp + 0x28]
push eax
mov eax, dword [0x70c18c]
mov eax, dword [eax + 0x74]
or eax, dword [esi + 0xe4]
push eax
mov eax, dword [esp + 0x2c]
and eax, 0x387f
push eax
call dword [sym.imp.KERNEL32.dll_LockFile]
mov eax, dword [esi + 0x94]
add eax, dword [esp + 0x24]
imul eax, edi
mov ecx, dword [0x70c18c]
push eax
mov eax, edi
imul eax, dword [esp + 0x28]
add eax, 0x356d
push eax
mov eax, dword [esi + 0xd8]
xor eax, dword [0x72a224]
and eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
xor eax, 0x394f
sub eax, 0x405c
push eax
mov eax, dword [ecx + 0xb8]
and eax, 0x3926
imul eax, eax, 0x356d
push eax
mov eax, dword [esp + 0x3c]
add eax, 0xffffc70e
push eax
mov eax, dword [ecx + 0x5c]
or eax, dword [esp + 0x38]
push eax
mov eax, dword [ecx + 0xfc]
xor eax, dword [esi + 0x80]
sub eax, dword [esi + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
sub ebx, ebp
and ebx, ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x84]
or eax, dword [esi + 0x6c]
mov ebx, dword [esp + 0x1c]
or eax, ebx
cmp dword [esi + 0x5c], eax
ja 0x40c6ec
mov ecx, dword [0x70c18c]
sub edx, dword [esi + 0xd8]
push edx
push ecx
mov eax, dword [ecx + 0x18]
mov edx, 0x32fb
add eax, edx
push eax
mov eax, dword [0x72a2b8]
or eax, 0x3759
xor eax, dword [esi + 0xe8]
push eax
mov eax, dword [esi + 0x100]
xor eax, edx
push eax
mov eax, dword [esp + 0x38]
or eax, 0x3efe
push eax
mov eax, dword [esi + 0xc0]
sub eax, dword [ecx + 0x120]
push eax
call fcn.0041bd79
add esp, 0x1c
xor ebp, 0x3154
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x74]
or eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [edi + 0x79e]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret