Function at 0x1000d280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
imul edi, esi, 0x4058
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0
add edi, ebx
cmp dword [edi + 0x4038], 0
je 0x1000d4c9
cmp byte [edi + 0x2d], 0
je 0x1000d2ed
push 0
lea eax, [ebp - 8]
push eax
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000d2da
push esi
mov ecx, ebx
call fcn.1000d090
test al, al
je 0x1000d4ee
mov ecx, dword [ebx + 0x283ec]
test ecx, ecx
je 0x1000d2ed
mov eax, dword [ecx]
push 0
push esi
push ebx
call dword [eax + 0xc]
mov esi, dword [edi + 0x4040]
test esi, esi
je 0x1000d307
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000d307
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x4054]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x1000d327
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000d327
push eax
call ebx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1000d4c9
mov esi, dword [edi + 0x4040]
test esi, esi
je 0x1000d349
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000d349
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0x4054], 0
jne 0x1000d364
test esi, esi
je 0x1000d360
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000d360
push eax
call ebx
xor ebx, ebx
jmp 0x1000d3c4
mov ebx, dword [edi + 0x4050]
lea eax, [edi + 0x4044]
test eax, eax
je 0x1000d37e
mov eax, dword [eax]
test eax, eax
je 0x1000d37e
mov edx, dword [eax]
jmp 0x1000d380
xor edx, edx
mov eax, dword [edx + 8]
mov ecx, ebx
dec eax
shr ecx, 2
and ecx, eax
and ebx, 3
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
mov ebx, dword [eax + ebx*4]
add dword [edi + 0x4054], 0xffffffff
jne 0x1000d3ac
mov dword [edi + 0x4050], 0
jmp 0x1000d3b2
inc dword [edi + 0x4050]
test esi, esi
je 0x1000d3c4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000d3c4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebx + 8]
lea eax, [edi + 0x2038]
mov ecx, dword [ebx]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x1000d43b
test eax, eax
jne 0x1000d3e7
call fcn.100250f0
mov dword [eax], 0x16
jmp 0x1000d436
test ecx, ecx
je 0x1000d400
cmp esi, 0x2000
ja 0x1000d400
push esi
push ecx
push eax
call fcn.10018850
add esp, 0xc
jmp 0x1000d43b
push 0x2000
push 0
push eax
call fcn.10019350
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1000d423
call fcn.100250f0
mov dword [eax], 0x16
jmp 0x1000d436
cmp esi, 0x2000
jbe 0x1000d43b
call fcn.100250f0
mov dword [eax], 0x22
call fcn.10024ea0
lea eax, [edi + 0x14]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 8]
lea eax, [edi + 0x2038]
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000d465
xor al, al
jmp 0x1000d474
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000d4a0
mov al, 1
mov byte [edi + 0x2d], al
test al, al
jne 0x1000d4af
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x283ec]
test edx, edx
je 0x1000d4af
mov eax, dword [edx]
push 0
push dword [ebp + 8]
push ecx
mov ecx, edx
call dword [eax + 0xc]
jmp 0x1000d4af
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.1000d090
test al, al
je 0x1000d4d4
mov eax, dword [ebx]
test eax, eax
je 0x1000d4be
push eax
call fcn.10025120
add esp, 4
push 0x10
push ebx
call fcn.10015690
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
test eax, eax
je 0x1000d4e3
push eax
call fcn.10025120
add esp, 4
push 0x10
push ebx
call fcn.10015690
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4