Function at 0x429b30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push str.ENDBLK
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x429b75
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_fgets]
push edi
push 0x50
push esi
call ebx
push edi
push 0x50
push esi
call ebx
push edi
push 0x50
push esi
call ebx
add esp, 0x24
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x47bcec
push esi
call sub.MSVCRT.dll_strcmp
mov ebx, dword [ebp + 0xc]
add esp, 8
test eax, eax
jne 0x429b9f
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push esi
push eax
mov byte [esi], 3
call fcn.00428110
jmp 0x429ebe
push str.LINE
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x429bc6
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push esi
push ecx
mov byte [esi], 1
call fcn.004282b0
jmp 0x429ebe
push str.CIRCLE
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x429bed
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push esi
push edx
mov byte [esi], 2
call fcn.00428110
jmp 0x429ebe
push str.POLYLINE
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x429c14
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push esi
push eax
mov byte [esi], 6
call fcn.00428430
jmp 0x429ebe
push str.TEXT
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x429eae
push str.ATTRIB
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x429eae
push str.SOLID
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x429e9c
push str.TRACE
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x429e9c
push str.INSERT
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x429d36
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push esi
push ecx
mov byte [esi], 0x14
mov word [esi + 1], 0x4c
call fcn.00428770
mov eax, dword [0x4a370c]
add esp, 8
cmp ebx, eax
je 0x429ec1
lea edx, [ebp + 0x10]
push edx
push esi
call fcn.00429f70
add esp, 8
test eax, eax
jne 0x429cfd
push 0x1ce
call fcn.00410630
push eax
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_strcpy
lea ecx, [ebp - 0x50]
push 0x47bd34
push ecx
call sub.MSVCRT.dll_strcat
add esi, 0x18
lea edx, [ebp - 0x50]
push esi
push edx
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x50]
push eax
call fcn.0040d270
add esp, 0x20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esi + 0x40]
mov ecx, dword [ebp + 0x10]
push ebx
sub esp, 8
fstp qword [esp]
sub esp, 8
fld dword [esi + 0x48]
sub esp, 8
fstp qword [esp + 8]
add esi, 0x38
fld dword [esi + 0xc]
fstp qword [esp]
push esi
push ecx
call fcn.00428ee0
add esp, 0x24
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.DIMENSION
push esi
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x429e80
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.004288d0
mov eax, dword [0x4a370c]
add esp, 8
cmp ebx, eax
je 0x429ec1
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.00429f70
add esp, 8
test eax, eax
jne 0x429dbe
push 0x1ce
call fcn.00410630
push eax
lea ecx, [ebp - 0x50]
push ecx
call sub.MSVCRT.dll_strcpy
lea edx, [ebp - 0x50]
push 0x47bd44
push edx
call sub.MSVCRT.dll_strcat
add esi, 0x18
lea eax, [ebp - 0x50]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea ecx, [ebp - 0x50]
push ecx
call fcn.0040d270
add esp, 0x20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x49ec74]
mov edi, dword [ecx + 0x15]
xor edx, edx
mov dx, word [eax + 0x2c]
cmp edx, dword [ecx + 0x11]
jle 0x429df4
push 0x1d0
call fcn.00410630
push eax
call fcn.0040d270
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x28]
mov ecx, dword [0x4a370c]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x4a370c]
xor eax, eax
mov ax, word [ecx + 0x2c]
push edx
push 1
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 1
je 0x429e33
push 0x1cf
jmp 0x429ee3
xor eax, eax
mov dl, byte [esi + 0x14]
mov byte [eax + edi + 0x14], dl
mov cx, word [esi + 0x16]
mov word [eax + edi + 0x16], cx
mov dl, byte [esi + 3]
xor ecx, ecx
mov cx, word [eax + edi + 1]
mov byte [eax + edi + 3], dl
xor edx, edx
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 0x2c]
cmp edx, eax
jg 0x429e35
xor eax, eax
mov ax, dx
push ebx
push 1
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x429de8
jmp 0x429ede
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004280d0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push esi
push eax
mov byte [esi], 0xd
call fcn.00429200
jmp 0x429ebe
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push esi
push ecx
mov byte [esi], 0x10
call fcn.00428970
add esp, 8
xor edx, edx
mov dx, word [esi + 1]
push ebx
push 1
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x429de8
push 0x1d1
call fcn.00410630
push eax
call fcn.0040d270
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret