Function at 0x102810b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x58], edi
jg 0x1028167
jl 0x1028145
cmp ebx, 0xfffe
ja 0x1028167
cmp dword [ebp + 0x14], edi
jg 0x1028167
jl 0x1028152
cmp dword [ebp + 0x10], 0xfffffffe
ja 0x1028167
cmp dword [ebp + 0x1c], edi
jl 0x1028229
jg 0x1028167
cmp dword [ebp + 0x18], 0xfffffffe
jbe 0x1028229
push 0x2d
pop edx
mov word [ebp - 0x48], dx
mov word [ebp - 0x46], dx
mov edx, dword [ebp + 0x10]
xor eax, eax
inc eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 0x18]
push edi
push edi
push dword [ecx]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0x6064b50
mov dword [ebp - 0x50], 0x2c
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x7064b50
call fcn.01025228
push 0x4d
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
call sub.msvcrt.dll_malloc
pop ecx
mov dword [ebp - 0x5c], eax
cmp eax, edi
je 0x1028328
push 0xe
pop ecx
push 5
mov edi, eax
lea esi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea edi, [eax + 0x38]
push 0
lea esi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 8]
push ecx
push 0x4c
push eax
mov eax, dword [ebp - 0x64]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1028323
cmp dword [ebp - 8], 0x4c
jne 0x1028323
push dword [ebp - 0x5c]
call fcn.0101be7e
pop ecx
xor edi, edi
mov eax, dword [ebp + 0x20]
add eax, 0x16
mov dword [ebp - 0x60], eax
inc eax
push eax
mov dword [ebp - 0x5c], edi
call sub.msvcrt.dll_malloc
mov esi, eax
pop ecx
cmp esi, edi
je 0x1028328
xor eax, eax
lea edi, [esi + 4]
mov dword [esi], 0x6054b50
stosd dword es:[edi], eax
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp - 0x58], ecx
je 0x1028273
cmp dword [ebp + 0xc], ecx
jl 0x1028273
jg 0x102826c
cmp ebx, 0xfffe
jbe 0x1028273
lea edi, [esi + 8]
stosw word es:[edi], ax
jmp 0x1028277
mov word [esi + 8], bx
cmp dword [ebp - 0x58], ecx
je 0x10282c2
cmp dword [ebp + 0xc], ecx
jl 0x1028292
jg 0x102828b
cmp ebx, 0xfffe
jbe 0x1028292
lea edi, [esi + 0xa]
stosw word es:[edi], ax
jmp 0x1028296
mov word [esi + 0xa], bx
cmp dword [ebp + 0x14], ecx
jl 0x10282a9
jg 0x10282a3
cmp dword [ebp + 0x10], 0xfffffffe
jbe 0x10282a9
lea edi, [esi + 0xc]
stosd dword es:[edi], eax
jmp 0x10282af
mov edx, dword [ebp + 0x10]
mov dword [esi + 0xc], edx
cmp dword [ebp + 0x1c], ecx
jl 0x10282cc
jg 0x10282bc
cmp dword [ebp + 0x18], 0xfffffffe
jbe 0x10282cc
lea edi, [esi + 0x10]
stosd dword es:[edi], eax
jmp 0x10282d2
mov eax, dword [ebp + 0x10]
mov word [esi + 0xa], bx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x20]
mov word [esi + 0x14], ax
cmp eax, ecx
je 0x10282ef
push eax
push dword [ebp - 0x68]
lea eax, [esi + 0x16]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor ecx, ecx
mov edi, dword [ebp - 0x60]
push ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x64]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1028318
cmp dword [ebp - 8], edi
jne 0x1028318
push esi
call fcn.0101be7e
pop ecx
xor eax, eax
jmp 0x102832b
push esi
call fcn.0101be7e
pop ecx
push 0xa
jmp 0x102832a
push dword [ebp - 0x5c]
jmp 0x1028319
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0x28