Function at 0x47b980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d44e8
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x52a0b0]
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 0x47bb19
cmp byte [0x52aaa4], bl
jne 0x47b9e4
cmp byte [0x530561], bl
je 0x47ba98
push 0
push ecx
push 0x4f7d1c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4e7a18
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406ce0
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], 0x4e7a18
mov dword [ebp - 0x48], 0x4e86a8
call fcn.00406ce0
mov byte [ebp - 4], 3
cmp byte [0x52aaa4], 0
je 0x47ba54
cmp byte [0x530561], 0
jne 0x47ba46
call fcn.0048ded0
test al, al
je 0x47ba4d
mov byte [0x530561], 1
mov byte [0x52aaa4], 0
cmp byte [0x530561], 0
je 0x47ba7d
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.0048e340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00404850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404850
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 0x47baf2
call esi
test eax, eax
jne 0x47bb0f
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 0x47bb0f
call esi
mov eax, 0x80004005
jmp 0x47c06f
mov eax, dword [ebx]
cmp eax, 6
ja 0x47c016
test eax, eax
je 0x47c016
push 4
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
push SysReAllocString
mov ecx, edi
call fcn.00479640
sub esp, 8
lea ecx, [ebp - 0xb0]
xor edi, edi
call fcn.00404910
mov dword [ebp - 4], 6
mov eax, dword [ebx]
dec eax
cmp eax, 5
ja case.default.0x47bb6e
jmp dword [eax*4 + 0x47c090]
lea ecx, [ebp - 0xac]
call fcn.00406880
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], 0x4e7a18
mov eax, 0x4e2398
mov dword [ebp - 0x18], 0x4e86a8
cmovne eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00406f00
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
mov edi, dword [esi + 0x3c]
call fcn.00403f10
push dword [eax]
test edi, edi
je 0x47bbd0
mov ecx, dword [edi]
push edi
call dword [ecx + 0x20]
jmp 0x47bbda
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.00404c20
jmp case.default.0x47bb6e
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], 0x4e7a18
mov eax, 0x4e2398
mov dword [ebp - 0x18], 0x4e86a8
cmovne eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00406f00
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe0]
mov edi, dword [esi + 0x3c]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004378b0
test edi, edi
je 0x47bc61
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00403f10
mov ecx, dword [edi]
push esi
push dword [eax]
push edi
call dword [ecx + 0x24]
jmp 0x47bc8c
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00403f10
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.00437830
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00404c20
jmp case.default.0x47bb6e
lea ecx, [ebp - 0xac]
call fcn.00406880
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], 0x4e7a18
mov esi, 0x4e2398
mov dword [ebp - 0x48], 0x4e86a8
mov eax, esi
cmovne eax, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.00406f00
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], 0x4e7a18
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406f00
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 0x47bd5d
call fcn.00403f10
lea ecx, [ebp - 0x70]
mov esi, dword [eax]
call fcn.00403f10
mov edx, dword [ebp - 0xd8]
push esi
push dword [eax]
mov ecx, dword [edx]
push edx
call dword [ecx + 0x28]
jmp 0x47bd79
call fcn.00403f10
lea ecx, [ebp - 0x70]
mov esi, dword [eax]
call fcn.00403f10
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.00404c20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00404c20
jmp case.default.0x47bb6e
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], 0x4e7a18
mov eax, 0x4e2398
mov dword [ebp - 0x48], 0x4e86a8
cmovne eax, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.00406f00
mov byte [ebp - 4], 0x16
mov eax, dword [ebx]
cmp eax, 4
jne 0x47be43
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004378b0
test edi, edi
je 0x47be16
mov byte [ebp - 4], 0x17
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403f10
mov ecx, dword [edi]
push esi
push dword [eax]
push edi
call dword [ecx + 0x2c]
jmp 0x47beb0
mov byte [ebp - 4], 0x18
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403f10
mov ecx, dword [ebp - 0xd4]
add ecx, 0xfffffffc
push esi
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x2c]
jmp 0x47beb0
cmp eax, 5
jne 0x47bec1
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004378b0
test edi, edi
je 0x47be85
mov byte [ebp - 4], 0x19
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403f10
mov ecx, dword [edi]
push esi
push dword [eax]
push edi
call dword [ecx + 0x30]
jmp 0x47beb0
mov byte [ebp - 4], 0x1a
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00403f10
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.00437830
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00404c20
jmp case.default.0x47bb6e
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], 0x4e7a18
mov eax, 0x4e2398
mov dword [ebp - 0x18], 0x4e86a8
cmovne eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00406f00
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.00403f10
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.00404c20
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.004a0ee0
mov esi, eax
add esp, 4
test esi, esi
jne 0x47bf8c
mov eax, 0x1c
mov dword [ebp - 0xd8], 0
lea esi, [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
mov edi, 0x8007000e
jmp 0x47bf92
mov eax, dword [ebp - 0xd4]
push eax
push 0
push esi
call fcn.004a2ef0
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 0x47bfd4
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.004a3e50
add esp, 0xc
push dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xe4]
push esi
push SysReAllocString
call fcn.00479640
lea eax, [ebp - 0xcc]
cmp esi, eax
je 0x47c000
push 0x1c
push esi
call fcn.004a15b5
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00404850
mov eax, edi
jmp 0x47c06f
push eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0x4f7d1c
push str.Suite_extension_received_unsupported_request___x__for_out_proc_extension
push eax
mov dword [ebp - 0xd8], 0x240
call fcn.0040b3b0
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.00479640
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.004a0eca
mov esp, ebp
pop ebp
ret 8