Function at 0x9d90f0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xfffffffffffffffe
push 0xb0e028
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], ecx
mov edi, edx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], 4
mov dword [ebp - 4], ecx
mov eax, dword [eax]
call fcn.00964530
test eax, eax
jne 0x9d9170
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x9d9306
mov eax, dword [edi + 0x14]
lea esi, [eax + 1]
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
inc eax
mov dword [ebp - 0x20], eax
lea eax, [eax + esi + 0x154]
mov dword [ebp - 0x3c], eax
call fcn.00966e40
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x9d9162
mov dword [ebx], esi
cmp dword [edi + 0x18], 0x10
jb 0x9d91a5
mov ecx, dword [edi + 4]
jmp 0x9d91a8
lea ecx, [edi + 4]
lea edx, [ebp]
jmp 0x9d91b0
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x9d91b0
push esi
lea esi, [ebp]
call fcn.00978150
mov edx, dword [ebp - 0x1c]
push edx
mov eax, esi
push eax
mov esi, 4
lea ecx, [esi + ebx]
push ecx
call fcn.00a828e0
push esi
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
add eax, esi
add eax, ebx
push eax
call fcn.00a828e0
add esp, 0x18
cmp dword [edi + 0x34], 0x10
jb 0x9d91f8
mov ecx, dword [edi + 0x20]
jmp 0x9d91fb
lea ecx, [edi + 0x20]
lea edx, [ebp]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x9d9200
mov ecx, dword [ebp - 0x20]
push ecx
lea esi, [ebp]
call fcn.00978150
mov edx, dword [ebp - 0x20]
push edx
mov eax, esi
push eax
mov esi, 4
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + esi*2]
add edx, ebx
push edx
call fcn.00a828e0
mov eax, dword [ebp - 0x20]
lea ecx, [eax + esi*2]
mov edx, dword [ebp - 0x1c]
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
push esi
lea ecx, [edi + 0x38]
push ecx
add eax, ebx
push eax
call fcn.00a828e0
mov eax, 8
push eax
lea edx, [edi + 0x3c]
push edx
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, eax
add ecx, ebx
push ecx
call fcn.00a828e0
add esp, 0x24
lea esi, [edi + 0x44]
mov eax, 8
mov edx, dword [ebp - 0x1c]
lea edi, [edx + eax]
add edi, dword [ebp - 0x30]
add edi, ebx
mov ecx, 0x50
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 1
mov dword [ebp - 0x28], edi
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x9d92b2
mov dword [ebp - 0x34], edi
push ebx
call fcn.00a78fec
add esp, 4
xor edi, edi
mov dword [ebp - 0x24], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x9d92e9
test edi, edi
je 0x9d92f6
push edi
call fcn.00a78fec
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x9d9303
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00a78f21
add ebp, 0x20c
mov esp, ebp
pop ebp
ret