Function at 0x5ded70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x81da85
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 8]
test al, al
jne 0x5df0a8
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0xf8]
mov edi, dword [ecx]
cmp edi, 1
jne 0x5dedc0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
je 0x5dee41
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], eax
call fcn.0043aef0
push edi
push ebp
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xf4], 0
mov dword [esp + 0x4c], 0x86a0d0
call fcn.005df1f0
mov edx, dword [esi]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0xec], 1
call dword [edx + 0x1c]
lea ecx, [esp + 0x40]
mov dword [esp + 0xe8], 0xffffffff
mov dword [esp + 0x40], vtable.WWLib::CHandle_1_.0
call fcn.005d6fb0
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], vtable.WWLib::CBase_unsigned_long_int__1_.0
call fcn.00404f20
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
jne 0x5df0a8
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xf0]
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5deeef
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esi + 4]
mov dword [esi + 0x18], eax
test ebx, ebx
je 0x5dee8a
add ebx, 4
jmp 0x5dee8c
xor ebx, ebx
push str.WriteFile__
call fcn.007ac4d2
add esp, 4
mov edi, eax
mov ecx, ebx
push 1
push edi
call fcn.00404d30
test al, al
je 0x5deec3
mov eax, dword [ebx + 4]
push edi
push str.WriteFile__
push eax
call fcn.004069b0
add esp, 0xc
mov ecx, ebx
push edi
call fcn.00404c90
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5deeef
push esi
lea ecx, [esp + 0x6c]
call fcn.00537590
lea eax, [esp + 0x68]
push 0x8c1f58
push eax
mov dword [esp + 0x70], 0x86a0c8
call fcn.007ac5c6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xf4]
cmp eax, ecx
je 0x5deff2
lea ebp, [esi + 4]
mov dword [esi + 0x18], 0x70
test ebp, ebp
je 0x5def15
add ebp, 4
jmp 0x5def17
xor ebp, ebp
push str.WriteFile__
call fcn.007ac4d2
add esp, 4
mov edi, eax
mov ecx, ebp
push 1
push edi
call fcn.00404d30
test al, al
je 0x5def55
mov eax, dword [ebp + 4]
push edi
push str.WriteFile__
push eax
call fcn.004069b0
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], edi
add esp, 0xc
mov word [ecx + edi*2], 0
lea edi, [ecx + edi*2]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5defee
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x18]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xec], 2
call fcn.005daec0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xec], 4
call fcn.00404f20
mov edx, dword [esi]
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0xe8], 5
call dword [edx + 0x10]
lea ecx, [esp + 0xcc]
mov dword [esp + 0xc8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x14]
lea edx, [esp + 0x68]
push 0x8c1f58
push edx
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0x70], 0x86a0c8
call fcn.007ac5c6
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x100]
test cl, cl
jne 0x5df0a8
mov ebx, dword [esi + 0x1c]
xor edi, edi
neg eax
adc edi, edi
lea ecx, [esp + 0x18]
neg edi
mov ebp, eax
call fcn.00435900
push 4
mov dword [esp + 0xec], 6
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], 0
call fcn.007d7320
add esp, 4
test eax, eax
je 0x5df045
mov dword [eax], 1
mov dword [esp + 0x3c], eax
jmp 0x5df04d
mov dword [esp + 0x3c], 0
push 1
push edi
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0xf4], 7
mov dword [esp + 0x24], 0x86a0d0
call fcn.005df1f0
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0xec], 8
call dword [eax + 0x1c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.WWLib::CHandle_1_.0
call fcn.005d6fb0
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], vtable.WWLib::CBase_unsigned_long_int__1_.0
call fcn.00404f20
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret 0x14