Function at 0x1003cc80
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10052004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push 0x100032ec
push 0x16
mov dword [ebp - 0x70], ebx
call fcn.100095f1
test dword [ebp + 0xc], 0xfffffff0
je 0x1003ccbe
mov eax, 0x800300ff
jmp 0x1003d0c7
cmp dword [ebx + 0x250], 0
je 0x1003ccd1
mov eax, 0x80030001
jmp 0x1003d0c7
cmp dword [ebx + 0x2c], 0
jne 0x1003ccde
xor eax, eax
jmp 0x1003d0c7
mov eax, dword [ebx + 0x254]
xor ecx, ecx
or dword [ebp - 0x60], 0xffffffff
add eax, 4
push esi
mov esi, dword [ebx + 0x238]
or edx, 0xffffffff
mov ebx, dword [ebp - 0x60]
shr eax, 2
push edi
xor edi, edi
mov dword [ebp - 0x78], eax
add esi, eax
mov dword [ebp - 0x88], 0x7f
cmp edi, ebx
jne 0x1003cd17
cmp ecx, edx
je 0x1003cd3f
mov ebx, edi
lea eax, [esi + edi]
lea edi, [ecx + 0x7f]
mov edx, ecx
add edi, eax
mov dword [ebp - 0x60], edx
shr edi, 7
cmp edi, 0x6d
jb 0x1003cd0f
push 0x7f
xor edx, edx
lea eax, [edi + 0x11]
pop ecx
div ecx
mov edx, dword [ebp - 0x60]
mov ecx, eax
jmp 0x1003cd0f
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], edi
test edi, edi
jne 0x1003cd56
mov eax, 0x800300fd
jmp 0x1003d0c5
mov eax, dword [ebp - 0x78]
mov esi, dword [fcn.10004ca0]
add eax, edi
add eax, ecx
mov ecx, esi
shl eax, 9
push eax
push 0
push dword [0x10052460]
mov dword [ebp - 0x94], eax
call dword [0x100532e8]
call esi
mov edx, eax
mov dword [ebp - 0x60], edx
mov dword [ebx + 0x234], edx
test edx, edx
jne 0x1003cd98
mov eax, 0x80030008
jmp 0x1003d0c5
mov ecx, dword [ebx + 0x238]
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
lea eax, [ecx + esi]
mov dword [ebp - 0x68], eax
lea eax, [ecx + edi]
add eax, esi
mov dword [ebp - 0x7c], eax
mov eax, esi
shl eax, 9
push eax
push 0xff
push edx
lea ecx, [eax + edx]
mov dword [ebp - 0x5c], ecx
lea ecx, [edi + esi]
shl ecx, 9
add ecx, edx
mov dword [ebp - 0x6c], ecx
call sub.msvcrt.dll_memset
mov eax, edi
shl eax, 9
push eax
push 0xff
push dword [ebp - 0x5c]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x78]
add esp, 0x18
and dword [ebp - 0x8c], 0
shl eax, 2
mov dword [ebp - 0x64], eax
test eax, eax
je 0x1003ce2d
mov edi, dword [ebp - 0x8c]
xor eax, eax
mov ebx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x64]
shl eax, 7
push 0
lea ecx, [ebx + eax]
call fcn.10021009
inc edi
movzx eax, di
cmp eax, esi
jb 0x1003ce0f
mov ebx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x68]
test esi, esi
je 0x1003ce89
mov edx, dword [ebp - 0x84]
cmp edx, ecx
jae 0x1003ce68
mov eax, dword [ebp - 0x60]
add eax, 0x1fc
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x64]
mov dword [eax + edx*4], 0xfffffffc
inc edx
mov dword [ebx], edx
lea ebx, [ebx + 0x200]
cmp edx, ecx
jb 0x1003ce4f
mov ebx, dword [ebp - 0x70]
jmp 0x1003ce6b
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x84]
mov dword [eax - 4], 0xfffffffe
mov dword [ebx + 0x74], edx
xor edx, edx
inc edx
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x230], edx
jmp 0x1003ce8c
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x7c]
cmp ecx, esi
jae 0x1003cef2
push 0x4c
pop edx
push 0xffffffffffffff93
pop edi
sub edi, ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x7c], edi
mov edi, dword [ebp - 0x60]
mov dword [eax + ecx*4], 0xfffffffd
mov eax, dword [ebp - 0x7c]
add eax, ecx
mov dword [ebp - 0x64], eax
add eax, 0x6d
cmp eax, 0x6d
jae 0x1003cecb
mov dword [ebx + edx + 0x30], ecx
mov dword [ebx + 0x230], 1
jmp 0x1003cee1
mov eax, dword [ebp - 0x64]
xor edx, edx
div dword [ebp - 0x88]
shl eax, 7
add eax, edx
mov edx, dword [ebp - 0x68]
mov dword [edi + eax*4], ecx
mov eax, dword [ebp - 0x5c]
inc ecx
add edx, 4
mov dword [ebp - 0x68], edx
cmp ecx, esi
jb 0x1003cea4
mov edi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
mov ecx, esi
add edx, esi
cmp esi, edx
jae 0x1003cf0f
mov ebx, dword [ebp - 0x5c]
lea eax, [ecx + 1]
mov dword [ebx + ecx*4], eax
mov ecx, eax
cmp ecx, edx
jb 0x1003cf00
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
inc ecx
mov dword [eax + edx*4 - 4], 0xfffffffe
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x230], ecx
mov esi, dword [ebx + 0x24c]
test esi, esi
je 0x1003cf97
mov edi, dword [ebp - 0x6c]
mov ebx, eax
add edi, 0xf4
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x44]
add edx, 0x1ff
shr edx, 9
add edx, ecx
jmp 0x1003cf59
lea eax, [ecx + 1]
mov dword [ebx + ecx*4], eax
mov ecx, eax
cmp ecx, edx
jb 0x1003cf51
mov dword [ebx + edx*4 - 4], 0xfffffffe
lea ecx, [edi - 0x74]
mov byte [edi - 0x32], 2
movzx eax, word [esi + 0x40]
push esi
push eax
call fcn.100095f1
mov eax, dword [esi + 0x44]
mov dword [edi], eax
mov eax, dword [esi + 0x48]
and dword [edi + 8], 0
mov dword [edi + 4], eax
or byte [edi - 0x31], 1
sub edi, 0xffffff80
mov esi, dword [esi + 0x4c]
test esi, esi
jne 0x1003cf3e
mov ebx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
push 5
call fcn.10021009
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x18]
call fcn.100095f1
mov eax, dword [ebp - 0x6c]
lea esi, [ebx + 0x23c]
lea edi, [ebp - 0x14]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x50]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or byte [eax + 0x43], 1
push dword [ebx + 0x254]
push 1
push eax
call fcn.1003cbe1
mov ecx, dword [ebp - 0x6c]
xor esi, esi
push esi
push esi
mov dword [ecx + 0x4c], eax
mov eax, dword [ebx + 0x238]
inc eax
shl eax, 9
push eax
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003d064
push esi
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x94]
push dword [ebx + 0x234]
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x1003d064
push esi
push esi
push esi
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003d064
push esi
lea eax, [ebp - 0x90]
push eax
push 0x200
lea eax, [ebx + 0x30]
push eax
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x1003d064
test byte [ebp + 0xc], 4
jne 0x1003d09b
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FlushFileBuffers]
test eax, eax
jne 0x1003d09b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
call fcn.10004c0d
push dword [ebx + 0x234]
mov edi, eax
push esi
push dword [0x10052460]
mov esi, dword [0x10052018]
mov ecx, esi
call dword [0x100532e8]
call esi
and dword [ebx + 0x234], 0
mov eax, edi
jmp 0x1003d0c5
push dword [ebx + 0x234]
push esi
push dword [0x10052460]
mov esi, dword [0x10052018]
mov ecx, esi
call dword [0x100532e8]
call esi
and dword [ebx + 0x234], 0
and dword [ebx + 0x2c], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100281a0
mov esp, ebp
pop ebp
ret 8