Function at 0x1002db3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100398e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x79b0
call fcn.10036c30
push esi
push edi
mov dword [ebp - 0x79bc], ecx
mov al, byte [0x1005bd6c]
mov byte [ebp - 0x258], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x257]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x1005bd70]
mov byte [ebp - 0x458], cl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x457]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0x1005bd74]
mov byte [ebp - 0x158], dl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xa
mov esi, 0x1005643c
lea edi, [ebp - 0x358]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x35
xor eax, eax
lea edi, [ebp - 0x32f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x4c
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x4c
mov ecx, dword [ebp - 0x79bc]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x358]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x100
lea edx, [ebp - 0x158]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x100
lea eax, [ebp - 0x258]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x12
lea ecx, [ebp - 0x58]
push ecx
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x1002dde7
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x79a4]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
push 0x12c
lea ecx, [ebp - 0x79a4]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x79a8], eax
mov dword [ebp - 0x79b0], 0
push 0x10056468
mov eax, dword [ebp - 0x79a8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x79b0], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x79a4]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp - 0x79bc]
call sym.STools.dll_public:_class_CFPoint_const____thiscall_CFCoor::GetOrigin_void_const
mov dword [ebp - 0x79ac], eax
mov ecx, dword [ebp - 0x79ac]
call fcn.1002ec50
mov dword [ebp - 0x799c], eax
mov ecx, dword [ebp - 0x799c]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0x79ac]
call sub.MFC42.DLL_CRichEditCtrl::LineIndex
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x79a0], 0
jmp 0x1002dd0c
mov edx, dword [ebp - 0x79a0]
add edx, 1
mov dword [ebp - 0x79a0], edx
mov eax, dword [ebp - 0x45c]
cdq
mov ecx, 0x7530
idiv ecx
add eax, 1
cmp dword [ebp - 0x79a0], eax
jge 0x1002ddbc
mov edx, dword [ebp - 0x79a0]
imul edx, edx, 0x7530
mov dword [ebp - 0x79b8], edx
mov eax, dword [ebp - 0x79b8]
add eax, 0x7530
mov dword [ebp - 0x79b4], eax
mov ecx, dword [ebp - 0x79b4]
cmp ecx, dword [ebp - 0x45c]
jle 0x1002dd66
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x79b4], edx
mov eax, dword [ebp - 0x79b4]
push eax
mov ecx, dword [ebp - 0x79b8]
push ecx
mov ecx, dword [ebp - 0x79ac]
call sub.MFC42.DLL_CRichEditCtrl::SetSel
lea edx, [ebp - 0x7998]
push edx
mov ecx, dword [ebp - 0x79ac]
call fcn.1002eec0
mov eax, dword [ebp - 0x79b0]
push eax
mov ecx, dword [ebp - 0x79b4]
sub ecx, dword [ebp - 0x79b8]
push ecx
push 1
lea edx, [ebp - 0x7998]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x1002dcfd
cmp dword [ebp - 0x79b0], 0
je 0x1002ddd5
mov eax, dword [ebp - 0x79b0]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x79a4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret