Function at 0x1000368e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xc]
mov esi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x100038df
cmp dword [ebp + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x100036f1
cmp dword [ebp + 0x14], 0
je 0x100036f1
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call ebx
lea eax, [ebp - 4]
push 0
push eax
lea eax, [esi + 0x64]
push 0x40
push eax
push edi
call ebx
xor edi, edi
cmp dword [esi + 0x88], edi
mov dword [ebp + 0x14], edi
jbe 0x100038bf
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp ecx, edx
jne 0x10003728
mov eax, dword [esi + 0xa4]
cmp dword [eax + edi], 7
jbe 0x10003762
jmp 0x10003777
cmp ecx, 1
jne 0x1000374b
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + edi]
cmp eax, ecx
je 0x10003777
cmp eax, 2
je 0x10003777
cmp eax, 3
je 0x10003777
cmp eax, 7
jb 0x10003762
jmp 0x10003777
cmp ecx, 2
jne 0x10003762
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + edi]
cmp eax, edx
je 0x10003777
cmp eax, 1
je 0x10003777
mov eax, dword [esi + 0xa4]
add eax, edi
cmp dword [eax], edx
jne 0x1000381c
cmp dword [ebp - 8], edx
je 0x1000378c
lea eax, [ebp - 4]
push edx
push eax
lea eax, [ebp - 0x10]
push 8
push eax
push dword [ebp + 8]
call ebx
jmp 0x100038aa
cmp ecx, 1
jne 0x10003799
mov ecx, dword [esi + 0x94]
jmp 0x1000379f
mov ecx, dword [esi + 0x98]
cmp ecx, edx
jbe 0x100038cd
cmp dword [ebp + 0xc], 1
jne 0x100037b5
mov ecx, dword [esi + 0x94]
jmp 0x100037bb
mov ecx, dword [esi + 0x98]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xa4]
push dword [edi + eax + 4]
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, dword [esi + 0xa4]
mov dword [edi + ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0xa4]
add eax, edi
xor ecx, ecx
mov edx, dword [eax + 4]
sub edx, 4
je 0x10003813
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
add edx, ecx
mov dword [eax + ecx], edx
mov eax, dword [esi + 0xa4]
add eax, edi
add ecx, 4
mov edx, dword [eax + 4]
sub edx, 4
cmp ecx, edx
jb 0x100037f3
xor edx, edx
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push edx
push eax
mov eax, edi
add eax, dword [esi + 0xa4]
push 8
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [esi + 0xa4]
add eax, edi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10003879
push ecx
mov ecx, esi
push dword [eax + 0x10]
call fcn.1000312f
mov eax, dword [esi + 0xa4]
lea ecx, [ebp - 4]
add eax, edi
push 0
push ecx
push dword [eax + 4]
push dword [eax + 0x10]
push dword [ebp + 8]
call ebx
mov eax, dword [esi + 0xa4]
mov ecx, esi
add eax, edi
push dword [eax + 4]
push dword [eax + 0x10]
call fcn.1000316c
mov eax, dword [esi + 0xa4]
add eax, edi
cmp dword [eax], 0
jne 0x100038aa
and dword [eax + 4], 0
mov eax, dword [esi + 0xa4]
mov eax, dword [edi + eax + 0x10]
test eax, eax
je 0x100038aa
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0xa4]
pop ecx
and dword [edi + eax + 0x10], 0
inc dword [ebp + 0x14]
add edi, 0x18
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0x88]
jb 0x10003711
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x100038e1
mov dword [eax + 4], edx
mov eax, dword [esi + 0xa4]
mov dword [edi + eax + 0x10], edx
jmp 0x10003815
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10