Function at 0x477380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd28a
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x477528
cmp byte [0x521aa4], al
jne 0x4773de
cmp byte [0x52753d], al
je 0x4774a7
push 0
push ecx
push 0x4f03a4
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x4e1680
mov dword [ebp - 0x88], 0x4e1670
call fcn.00406ca0
mov dword [ebp - 4], 1
push 0
push ecx
push str.Parcel_extension_received_no_data_for_out_proc_extension_request
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x4e1680
mov dword [ebp - 0x58], 0x4e1670
call fcn.00406ca0
mov byte [ebp - 4], 3
cmp byte [0x521aa4], 0
je 0x477457
cmp byte [0x52753d], 0
jne 0x477449
call fcn.00489070
test al, al
je 0x477450
mov byte [0x52753d], 1
mov byte [0x521aa4], 0
cmp byte [0x52753d], 0
je 0x477489
cmp dword [ebp - 0x98], 8
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x7c]
cmovae edx, dword [ebp - 0xac]
cmp dword [ebp - 0x68], 8
push 0x305
cmovae ecx, dword [ebp - 0x7c]
call fcn.004894e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.00404810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00404810
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xd4]
push 0
push eax
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0xe8], 0x80004005
push eax
push dword [ebx + 0x20]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x20], 0xde55adff
mov dword [ebp - 0x14], 0x55adffde
mov dword [ebp - 0x1c], SysReAllocString
mov dword [ebp - 0x18], 4
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x477501
call esi
test eax, eax
jne 0x47751e
push 0
lea eax, [ebp - 0xd4]
push eax
push 4
lea eax, [ebp - 0xe8]
push eax
push dword [ebx + 0x20]
call edi
test eax, eax
jne 0x47751e
call esi
mov eax, 0x80004005
jmp 0x4777bd
mov eax, dword [eax]
cmp eax, 0xa
jbe 0x477581
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0x4f03a4
push str.Parcel_extension_received_unsupported_request___x__for_out_proc_extension
push eax
mov dword [ebp - 0xe0], 0x311
call fcn.0040b370
add esp, 0xc
mov dword [ebp - 0xd8], 0x8002000b
lea eax, [ebp - 0xd8]
mov ecx, ebx
push 4
push eax
push SysReAllocString
call fcn.004747d0
mov eax, 0x8002000b
jmp 0x4777bd
push 4
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
push SysReAllocString
mov ecx, ebx
call fcn.004747d0
sub esp, 8
lea ecx, [ebp - 0x50]
xor esi, esi
call fcn.004048d0
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], esi
mov eax, dword [eax]
cmp eax, 0xa
ja case.default.0x4775cb
jmp dword [eax*4 + 0x4777dc]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00434ff0
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
mov edx, dword [edi - 4]
lea ecx, [edi - 4]
push eax
push ecx
call dword [edx + 0x1c]
jmp 0x477651
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00434ff0
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
mov edx, dword [edi - 4]
lea ecx, [edi - 4]
push eax
push ecx
call dword [edx + 0x20]
jmp 0x477651
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00434ff0
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
mov edx, dword [edi - 4]
lea ecx, [edi - 4]
push eax
push ecx
call dword [edx + 0x24]
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf8]
call fcn.00434f70
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], 8
lea ebx, [eax + eax]
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
jmp 0x47770f
mov ecx, dword [edi - 4]
lea eax, [edi - 4]
lea edx, [ebp - 0xd0]
push edx
push eax
call dword [ecx + 0x28]
jmp 0x477702
mov ecx, dword [edi - 4]
lea eax, [edi - 4]
lea edx, [ebp - 0xd0]
push edx
push eax
call dword [ecx + 0x2c]
jmp 0x477702
mov ecx, dword [edi - 4]
lea eax, [edi - 4]
lea edx, [ebp - 0xd0]
push edx
push eax
call dword [ecx + 0x30]
jmp 0x477702
mov esi, 0x80004001
jmp case.default.0x4775cb
mov ecx, dword [edi - 4]
lea eax, [edi - 4]
lea edx, [ebp - 0xd0]
push edx
push eax
call dword [ecx + 0x38]
jmp 0x477702
mov ecx, dword [edi - 4]
lea eax, [edi - 4]
lea edx, [ebp - 0xd0]
push edx
push eax
call dword [ecx + 0x3c]
jmp 0x477702
mov ecx, dword [edi - 4]
lea eax, [edi - 4]
lea edx, [ebp - 0xd0]
push edx
push eax
call dword [ecx + 0x40]
jmp 0x477702
mov ecx, dword [edi - 4]
lea eax, [edi - 4]
lea edx, [ebp - 0xd0]
push edx
push eax
call dword [ecx + 0x44]
mov esi, eax
mov ebx, 4
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd8], eax
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0xd4], eax
call fcn.0049c24e
mov edi, eax
add esp, 4
test edi, edi
jne 0x477747
mov eax, 0x1c
lea edi, [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
xor ebx, ebx
mov esi, 0x8007000e
jmp 0x47774d
mov eax, dword [ebp - 0xd4]
push eax
push 0
push edi
call fcn.0049e210
mov eax, dword [ebp - 0xdc]
add esp, 0xc
mov eax, dword [eax]
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
test ebx, ebx
je 0x477780
push ebx
push dword [ebp - 0xd8]
lea eax, [edi + 0x18]
push eax
call fcn.0049f140
add esp, 0xc
push dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xe0]
push edi
push SysReAllocString
call fcn.004747d0
lea eax, [ebp - 0xcc]
cmp edi, eax
je 0x4777ac
push 0x1c
push edi
call fcn.0049c240
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00404810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 8