Function at 0x476b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd1f8
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
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 esi, ecx
mov dword [ebp - 0xd4], esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xd8], ebx
test ebx, ebx
jne 0x476ca9
cmp byte [0x521aa4], bl
jne 0x476b74
cmp byte [0x52753d], bl
je 0x476c28
push 0
push ecx
push 0x4f03a4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4e1680
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406ca0
mov dword [ebp - 4], 1
push 0
push ecx
push str.Suite_extension_received_no_data_for_out_proc_extension_request
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4e1680
mov dword [ebp - 0x48], 0x4e1670
call fcn.00406ca0
mov byte [ebp - 4], 3
cmp byte [0x521aa4], 0
je 0x476be4
cmp byte [0x52753d], 0
jne 0x476bd6
call fcn.00489070
test al, al
je 0x476bdd
mov byte [0x52753d], 1
mov byte [0x521aa4], 0
cmp byte [0x52753d], 0
je 0x476c0d
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
cmovae edx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push 0x234
cmovae ecx, dword [ebp - 0x6c]
call fcn.004894e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00404810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404810
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xd4]
push 0
push eax
push 0x10
lea eax, [ebp - 0x80]
mov dword [ebp - 0xe8], 0x80004005
push eax
push dword [edi + 0x20]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x80], 0xde55adff
mov dword [ebp - 0x74], 0x55adffde
mov dword [ebp - 0x7c], SysReAllocString
mov dword [ebp - 0x78], 4
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x476c82
call esi
test eax, eax
jne 0x476c9f
push 0
lea eax, [ebp - 0xd4]
push eax
push 4
lea eax, [ebp - 0xe8]
push eax
push dword [edi + 0x20]
call ebx
test eax, eax
jne 0x476c9f
call esi
mov eax, 0x80004005
jmp 0x4771ff
mov eax, dword [ebx]
cmp eax, 6
ja 0x4771a6
test eax, eax
je 0x4771a6
push 4
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
push SysReAllocString
mov ecx, edi
call fcn.004747d0
sub esp, 8
lea ecx, [ebp - 0xb0]
xor edi, edi
call fcn.004048d0
mov dword [ebp - 4], 6
mov eax, dword [ebx]
dec eax
cmp eax, 5
ja case.default.0x476cfe
jmp dword [eax*4 + 0x477220]
lea ecx, [ebp - 0xac]
call fcn.00406840
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xcd]
push 0
shr eax, 1
lea ecx, [ebx + 0x18]
push edx
push eax
test ecx, ecx
mov dword [ebp - 0x40], 0x4e1680
mov eax, 0x4db368
mov dword [ebp - 0x18], 0x4e1670
cmovne eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00406ec0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
mov edi, dword [esi + 0x3c]
call fcn.00403ed0
push dword [eax]
test edi, edi
je 0x476d60
mov ecx, dword [edi]
push edi
call dword [ecx + 0x20]
jmp 0x476d6a
mov edx, dword [esi - 4]
lea ecx, [esi - 4]
push ecx
call dword [edx + 0x20]
mov edi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00404be0
jmp case.default.0x476cfe
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xcd]
push 0
shr eax, 1
lea ecx, [ebx + 0x18]
push edx
push eax
test ecx, ecx
mov dword [ebp - 0x40], 0x4e1680
mov eax, 0x4db368
mov dword [ebp - 0x18], 0x4e1670
cmovne eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00406ec0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe0]
mov edi, dword [esi + 0x3c]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00434ff0
test edi, edi
je 0x476df1
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00403ed0
mov ecx, dword [edi]
push esi
push dword [eax]
push edi
call dword [ecx + 0x24]
jmp 0x476e1c
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00403ed0
mov ecx, dword [ebp - 0xd4]
add ecx, 0xfffffffc
push esi
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x24]
mov edi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe0]
call fcn.00434f70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00404be0
jmp case.default.0x476cfe
lea ecx, [ebp - 0xac]
call fcn.00406840
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xcd]
push 0
shr eax, 1
lea ecx, [ebx + 0x18]
push edx
push eax
test ecx, ecx
mov dword [ebp - 0x70], 0x4e1680
mov esi, 0x4db368
mov dword [ebp - 0x48], 0x4e1670
mov eax, esi
cmovne eax, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.00406ec0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0xcd]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
add eax, 0x18
shr ecx, 1
add eax, ebx
push 0
push edx
push ecx
cmovne esi, eax
mov dword [ebp - 0x40], 0x4e1680
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406ec0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0xd4]
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0xd8], eax
test eax, eax
je 0x476eed
call fcn.00403ed0
lea ecx, [ebp - 0x70]
mov esi, dword [eax]
call fcn.00403ed0
mov edx, dword [ebp - 0xd8]
push esi
push dword [eax]
mov ecx, dword [edx]
push edx
call dword [ecx + 0x28]
jmp 0x476f09
call fcn.00403ed0
lea ecx, [ebp - 0x70]
mov esi, dword [eax]
call fcn.00403ed0
mov edx, dword [edi - 4]
lea ecx, [edi - 4]
push esi
push dword [eax]
push ecx
call dword [edx + 0x28]
mov edi, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40]
call fcn.00404be0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00404be0
jmp case.default.0x476cfe
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xcd]
push 0
shr eax, 1
lea ecx, [ebx + 0x18]
push edx
push eax
test ecx, ecx
mov dword [ebp - 0x70], 0x4e1680
mov eax, 0x4db368
mov dword [ebp - 0x48], 0x4e1670
cmovne eax, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.00406ec0
mov byte [ebp - 4], 0x16
mov eax, dword [ebx]
cmp eax, 4
jne 0x476fd3
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00434ff0
test edi, edi
je 0x476fa6
mov byte [ebp - 4], 0x17
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403ed0
mov ecx, dword [edi]
push esi
push dword [eax]
push edi
call dword [ecx + 0x2c]
jmp 0x477040
mov byte [ebp - 4], 0x18
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403ed0
mov ecx, dword [ebp - 0xd4]
add ecx, 0xfffffffc
push esi
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x2c]
jmp 0x477040
cmp eax, 5
jne 0x477051
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00434ff0
test edi, edi
je 0x477015
mov byte [ebp - 4], 0x19
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403ed0
mov ecx, dword [edi]
push esi
push dword [eax]
push edi
call dword [ecx + 0x30]
jmp 0x477040
mov byte [ebp - 4], 0x1a
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403ed0
mov ecx, dword [ebp - 0xd4]
add ecx, 0xfffffffc
push esi
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x30]
mov edi, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xe0]
call fcn.00434f70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00404be0
jmp case.default.0x476cfe
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xcd]
push 0
shr eax, 1
lea ecx, [ebx + 0x18]
push edx
push eax
test ecx, ecx
mov dword [ebp - 0x40], 0x4e1680
mov eax, 0x4db368
mov dword [ebp - 0x18], 0x4e1670
cmovne eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00406ec0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x40]
mov eax, dword [ebx + 8]
add eax, ebx
mov ebx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
call fcn.00403ed0
mov ecx, dword [ebp - 0xd4]
push esi
add ecx, 0xfffffffc
push edi
push ebx
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x34]
mov edi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00404be0
mov ebx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x9c]
add eax, eax
mov dword [ebp - 0xd8], eax
add eax, 0x1c
push eax
mov dword [ebp - 0xd4], eax
call fcn.0049c24e
mov esi, eax
add esp, 4
test esi, esi
jne 0x47711c
mov eax, 0x1c
mov dword [ebp - 0xd8], 0
lea esi, [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
mov edi, 0x8007000e
jmp 0x477122
mov eax, dword [ebp - 0xd4]
push eax
push 0
push esi
call fcn.0049e210
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebp - 0xd8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
test ecx, ecx
je 0x477164
cmp dword [ebp - 0x98], 8
lea eax, [ebp - 0xac]
push ecx
cmovae eax, dword [ebp - 0xac]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0049f140
add esp, 0xc
push dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xe4]
push esi
push SysReAllocString
call fcn.004747d0
lea eax, [ebp - 0xcc]
cmp esi, eax
je 0x477190
push 0x1c
push esi
call fcn.0049c240
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00404810
mov eax, edi
jmp 0x4771ff
push eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0x4f03a4
push str.Suite_extension_received_unsupported_request___x__for_out_proc_extension
push eax
mov dword [ebp - 0xd8], 0x240
call fcn.0040b370
add esp, 0xc
mov edx, 0x80004001
cmp dword [ebx], 0
mov ecx, 0x8002000b
cmove ecx, edx
mov dword [ebp - 0xe4], ecx
lea ecx, [ebp - 0xe4]
push 4
push ecx
push SysReAllocString
mov ecx, edi
call fcn.004747d0
mov eax, 0x8002000b
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