Function at 0xdc7cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
test esi, esi
je 0xdc7f10
cmp byte [esi + 0x1390], 0
jne 0xdc7d40
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xdc7d23
mov edx, dword [ebp + 8]
mov dword [edx], 0xffffffff
mov dword [esi + 0x13c4], 0xffffffff
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
jne 0xdc7eb0
mov edx, dword [ebp + 0x14]
test edx, edx
je 0xdc7d5c
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov edi, dword [ebp + 0x18]
test edi, edi
je 0xdc7d6c
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0xdc7d7c
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0xdc7d8c
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0xdc7ed0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0xdc7da9
mov eax, dword [esi + 0x139c]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0xdc7dbb
mov eax, dword [esi + 0x13a0]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0xdc7dcd
mov eax, dword [esi + 0x13ac]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0xdc7ddf
mov eax, dword [esi + 0x13b0]
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0xdc7def
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ebx, dword [esi + 0x13b4]
mov dword [esi + 0x13c4], 0
test ebx, ebx
je 0xdc7e11
lea eax, [esi + 0x1394]
cmp dword [ebx], eax
je 0xdc7f29
mov dword [esp], esi
call fcn.00ded778
jmp 0xdc7d2d
lea eax, [esi + 4]
lea edx, [esi + 0x1394]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jmp 0xdc7e3f
cmp edi, 4
je 0xdc7f9f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x13a8], 0x1388
mov dword [esi + 0x13a4], eax
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.00dc7980
mov edi, eax
sub esp, 8
lea eax, [eax - 3]
cmp eax, 1
ja 0xdc7fa6
mov eax, dword [esi + 0x13a8]
cmp eax, 0x1387
ja 0xdc7e30
mov ebx, 0x1388
mov edx, dword [ebp - 0x14]
sub ebx, eax
mov eax, dword [esi]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp ebx, eax
jne 0xdc7eb0
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
je 0xdc7e30
lea esi, [esi]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xdc7ec0
mov eax, dword [ebp + 8]
mov dword [eax], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
jmp 0xdc7d2d
mov edi, dword [esi + 0x13c4]
test edi, edi
je 0xdc7e1e
test byte [eax + 0xc], 0x20
jne 0xdc7d97
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
je 0xdc7d97
mov edx, dword [ebp + 8]
test edx, edx
je 0xdc7ec0
mov edx, dword [ebp + 8]
mov dword [edx], 0xfffffffa
jmp 0xdc7ec0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xdc7d2d
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0xdc7d2d
mov eax, dword [ebx + 0x10]
test eax, eax
je 0xdc7f43
mov dword [esp + 4], eax
mov eax, dword [esi + 0x13c0]
mov dword [esp], eax
call dword [esi + 0x13bc]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0xdc7f5d
mov dword [esp + 4], eax
mov eax, dword [esi + 0x13c0]
mov dword [esp], eax
call dword [esi + 0x13bc]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0xdc7f77
mov dword [esp + 4], eax
mov eax, dword [esi + 0x13c0]
mov dword [esp], eax
call dword [esi + 0x13bc]
mov eax, dword [esi + 0x13b4]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x13c0]
mov dword [esp], eax
call dword [esi + 0x13bc]
mov dword [esi + 0x13b4], 0
jmp 0xdc7e11
mov eax, dword [esi]
jmp 0xdc7ede
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xdc7fb2
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [esi + 0x13c4], edi
jmp 0xdc7d2d