Function at 0x477650
Capabilities:
Create mailslot
Create pipe
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
mov ecx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x76d020
mov dword [ebp - 0x18], ecx
call ecx
sub esp, 0x1c
mov dword [ebp - 0x14], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcb1
xor eax, eax
mov dword [esp + 8], 0x76d020
mov dword [esp + 4], str.open__s_failed_n
cmp dword [ebp - 0x14], 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.kernel32.dll_GetFileType]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcb3
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.expected_type_disk_got__ld_n
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x5989b0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
call ecx
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, 0xcb6
call fcn.0045b740
mov dword [esp + 4], str.open_nul_failed_n
xor eax, eax
cmp dword [ebp - 0x14], 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcb8
xor eax, eax
cmp ebx, 2
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.expected_type_char_for_nul_got__ld_n
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edi
mov eax, dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov dword [esp], 0x76d020
mov dword [ebp - 0x18], eax
call eax
sub esp, 4
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x14], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcbc
xor eax, eax
mov dword [esp + 4], str.GetStdHandle_failed_n
cmp dword [ebp - 0x14], 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], 0xfffffff5
call esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
mov eax, 0xcbf
call fcn.0045b740
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.expected_type__ld_for_STD_OUTPUT_HANDLE_got__ld_n
cmp edx, ebx
mov dword [esp + 0xc], edx
sete al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreatePipe]
sub esp, 0x10
mov ebx, eax
mov eax, 0xcc2
call fcn.0045b740
mov dword [esp], ebx
mov dword [esp + 4], 0x59ce69
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcc4
xor eax, eax
cmp ebx, 3
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.expected_type_pipe_got__ld_n
call fcn.0045bef0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
mov eax, 0xcc6
call fcn.0045b740
xor eax, eax
cmp ebx, 3
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.expected_type_pipe_got__ld_n
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..pipewine_test
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
sub esp, 0x20
mov dword [ebp - 0x14], eax
mov eax, 0xccb
call fcn.0045b740
mov dword [esp + 4], 0x59cebe
xor eax, eax
cmp dword [ebp - 0x14], 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
mov eax, 0xccd
call fcn.0045b740
xor eax, eax
cmp ebx, 3
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.expected_type_pipe_got__ld_n
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x76d020
mov ecx, dword [ebp - 0x20]
call ecx
sub esp, 0x1c
mov dword [ebp - 0x14], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcd1
xor eax, eax
mov dword [esp + 8], 0x76d020
mov dword [esp + 4], str.open__s_failed_n
cmp dword [ebp - 0x14], 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
call eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov eax, 0xcd3
call fcn.0045b740
mov dword [esp + 4], 0x59ced6
mov edx, dword [ebp - 0x10]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xbc614e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call esi
mov ecx, dword [0x8f0770]
sub esp, 4
mov ebx, eax
mov dword [ebp - 0x20], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x477b35
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcd7
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.expected_type_unknown_got__ld_n
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x477b00
mov ebx, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test ebx, ebx
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
mov ebx, dword fs:[0x18]
jmp 0x477bb2
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcd9
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_INVALID_HANDLE_got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x477b78
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], 0x76d020
mov eax, dword [ebp - 0x18]
call eax
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcdf
xor eax, eax
mov dword [esp + 4], 0x59ced6
mov ebx, dword [ebp - 0x14]
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xbc614e
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call esi
mov ecx, dword [0x8f0770]
sub esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x477cd5
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xce3
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.expected_type_unknown_got__ld_n
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x477ca0
mov ebx, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test ebx, ebx
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
mov ebx, dword fs:[0x18]
jmp 0x477d52
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xce5
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_INVALID_HANDLE_got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x477d18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str..mailslotwine_test
call dword [sym.imp.kernel32.dll_CreateMailslotW]
sub esp, 0x10
mov dword [ebp - 0x14], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xce9
xor eax, eax
mov dword [esp + 4], str.CreateMailslot_failed_n
cmp dword [ebp - 0x14], 0xffffffff
setne al
mov dword [esp], eax
mov ebx, dword fs:[0x18]
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x34], 0xbc614e
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, 0xcec
call fcn.0045b740
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [esp + 4], str.expected_type_unknown_got__ld_n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.0045bef0
mov ecx, dword [0x8f0770]
mov dword [ebp - 0x18], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x477e7b
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcee
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_NO_ERROR_got__lx_n
mov dword [esp + 8], eax
mov ecx, dword [ebx + 0x34]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x477e40
mov eax, dword [ebp - 0x14]
mov ebx, dword fs:[0x18]
mov dword [esp], eax
call edi
mov dword [ebx + 0x34], 0xbc614e
sub esp, 4
mov dword [esp], 0xffffffff
call esi
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, 0xcf3
call fcn.0045b740
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [esp + 4], str.expected_type_unknown_got__ld_n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcf4
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_INVALID_HANDLE_got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.0045bef0
mov dword [ebx + 0x34], 0xbc614e
mov dword [esp], 0xfffffffe
call esi
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, 0xcf8
call fcn.0045b740
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [esp + 4], str.expected_type_unknown_got__ld_n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.0045bef0
mov eax, 0xcf9
call fcn.0045b740
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_INVALID_HANDLE_got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
sub esp, 0xc
mov dword [ebp - 0x14], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xcfc
xor eax, eax
mov dword [esp + 4], str.CreateMutex_failed_n
mov edx, dword [ebp - 0x14]
test edx, edx
setne al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x34], 0xbc614e
mov dword [esp], eax
call esi
sub esp, 4
mov esi, eax
mov eax, 0xcff
call fcn.0045b740
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.expected_type_unknown_got__ld_n
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xd00
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_INVALID_HANDLE_got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret