Function at 0x100c363d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
lea edi, [ebp - 0x68]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101d6d64]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x101e94ce
call fcn.1019d101
mov byte [ebp - 0xc], 0xff
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0xff
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x10], 0
jge 0x100c358a
mov dword [ebp - 0x54], 0xffffffff
mov eax, dword [ebp + 0x18]
sub eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x100c3597
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], 0
jmp 0x100c35a2
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x54]
je 0x100c37ae
mov dword [ebp - 0x30], 0
jmp 0x100c35c0
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x14]
jge 0x100c3789
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x30]
imul eax, dword [ebp + 0x1c]
add eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
cmp dword [ebp + 0x24], 0
jge 0x100c360b
mov esi, esp
mov eax, dword [ebp + 8]
push eax
push 1
push 1
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x60]
lea eax, [edx + ecx - 1]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.1019d0de
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
sub ecx, 1
mov dword [ebp - 0x128], ecx
cmp dword [ebp - 0x128], 3
ja case.default.0x100c3636
mov edx, dword [ebp - 0x128]
jmp dword [edx*4 + 0x100c3818]
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx + ecx]
push eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + edx]
push ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + eax]
push edx
push 0x101b9fec
mov eax, dword [ebp + 8]
push eax
call fcn.100c3830
add esp, 0x14
jmp case.default.0x100c3636
cmp dword [ebp + 0x24], 0
jne case.0x100c3636.2
mov dword [ebp - 0x48], 0
jmp 0x100c369f
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x100c36e5
mov eax, dword [ebp - 0x48]
movzx ecx, byte [ebp + eax - 0xc]
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x48]
movzx eax, byte [edx]
mov edx, dword [ebp - 0x48]
movzx edx, byte [ebp + edx - 0xc]
sub eax, edx
mov edx, 1
imul edx, edx, 3
mov esi, dword [ebp - 0x60]
movzx edx, byte [esi + edx]
imul eax, edx
cdq
mov esi, 0xff
idiv esi
add ecx, eax
mov eax, dword [ebp - 0x48]
mov byte [ebp + eax - 0x18], cl
jmp 0x100c3696
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + eax - 0x17]
push ecx
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x18]
push eax
mov ecx, 1
sub ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + ecx - 0x18]
push edx
push 0x101b9fec
mov eax, dword [ebp + 8]
push eax
call fcn.100c3830
add esp, 0x14
jmp case.default.0x100c3636
mov eax, dword [ebp - 0x60]
add eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 1]
push ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + edx]
push ecx
mov edx, 1
sub edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + edx]
push ecx
push 0x101b9fec
mov edx, dword [ebp + 8]
push edx
call fcn.100c3830
add esp, 0x14
cmp dword [ebp + 0x24], 0
jle 0x100c3784
mov esi, esp
mov eax, dword [ebp + 8]
push eax
push 1
push 1
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x60]
lea eax, [edx + ecx - 1]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.1019d0de
jmp 0x100c35b7
mov esi, esp
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebp + 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.1019d0de
jmp 0x100c3599
push edx
mov ecx, ebp
push eax
lea edx, [0x100c37e0]
call fcn.1019d088
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019d133
add esp, 0x128
cmp ebp, esp
call fcn.1019d0de
mov esp, ebp
pop ebp
ret